2017-09-05 12 views
0

URLは、私はこのエラーここ(Elasticsearch + IKアナライザ)_analyze APIを使用すると、なぜnull_pointer_exceptionが返されますか?

"error": { 
"root_cause": [ 
{ 
"type": "remote_transport_exception", 
"reason": "[40-42][188.188.40.42:9300][indices:admin/analyze[s]]" 
} 
], 
"type": "null_pointer_exception", 
"reason": null 
}, 
"status": 500 
} 

私はそれを使用するとき、私はnull_pointer_exceptionを得た理由は、私は、私はik_synonymsを定義し

"settings": { 
"index": { 
"creation_date": "1496822869317", 
"analysis": { 
"filter": { 
"my_synonym_filter": { 
"type": "synonym", 
"synonyms_path": "synonym.txt" 
} 
}, 
"analyzer": { 
"ik_synonyms": { 
"filter": [ 
"my_synonym_filter" 
], 
"tokenizer": "ik_smart" 
} 
} 
} 

設定さを持っ

http://188.188.40.42:9200/appindex/_analyze?analyzer=ik_synonyms&text=ahaha

です?

ESのバージョンは2.1.1

であると私は私のESログ印刷決して見つけ、ここに私のlogging.ymlが

es.logger.level: DEBUG 
rootLogger: ${es.logger.level}, console, file 
logger: 
    # log action execution errors for easier debugging 
    action: WARN 

    # deprecation logging, turn to DEBUG to see them 
    deprecation: INFO, deprecation_log_file 

    # reduce the logging for aws, too much is logged under the default INFO 
    com.amazonaws: WARN 
    # aws will try to do some sketchy JMX stuff, but its not needed. 
    com.amazonaws.jmx.SdkMBeanRegistrySupport: ERROR 
    com.amazonaws.metrics.AwsSdkMetrics: ERROR 

    org.apache.http: ERROR 

    # gateway 
    #gateway: DEBUG 
    #index.gateway: DEBUG 

    # peer shard recovery 
    #indices.recovery: DEBUG 

    # discovery 
    #discovery: TRACE 

    index.search.slowlog: TRACE, index_search_slow_log_file 
    index.indexing.slowlog: TRACE, index_indexing_slow_log_file 

additivity: 
    index.search.slowlog: false 
    index.indexing.slowlog: false 
    deprecation: false 

... 
+0

あなたはESログで見ますか?どのESのバージョンを使用していますか? – Val

+0

@Valバージョンは2.1.1で、esはログを出力しません。理由はわかりません。 – Bowie

答えて

関連する問題