0

結果を _id でソート可能にしたいので、追加する必要があります

"_id" : {
    "index" : "not_analyzed",
    "store" : true
}

私のインデックスに、正しいですか?
これが私のjdbcフィーダーのスクリプトです:

#!/bin/bash
#Verzeichnis von JDBC -> wichtig, anpassen!
export JDBC_IMPORTER_HOME=~/Downloads/elasticsearch-jdbc-1.6.0.0

bin=$JDBC_IMPORTER_HOME/bin
lib=$JDBC_IMPORTER_HOME/lib
echo '{
    "type" : "jdbc",
    "jdbc" : {
        "url" : "jdbc:mysql://xxxxxxxxx",
        "user" : "xxxx",
        "password" : "xxxxxxx",
        "index" : "xxxxxxxx",
        "type" : "xxxxxx",
        "sql" : "SELECT xxxxxxxxx"
    }
}' | java \
       -cp "${lib}/*" \
       -Dlog4j.configurationFile=${bin}/log4j2.xml \
       org.xbib.tools.Runner \
       org.xbib.tools.JDBCImporter

追加した

"index_settings" : {
        "_id" : {
            "index" : "not_analyzed",
            "store" : true
        }
    }

"password" : "xxxxxxx",
"index" : "xxxxxxxx",

この設定は
どこに追加すればよいですか?

4

0 に答える 0