ElasticSearch mapping doesn't work

后端 未结 2 631
不知归路
不知归路 2021-02-14 16:48

I\'m trying to set up an ElasticSearch index with different analyzers for the individual fields. However, I can\'t seem to find a way to set field-specific analyzers; here\'s ho

相关标签:
2条回答
  • 2021-02-14 17:33

    I recommend to you use https://github.com/lmenezes/elasticsearch-kopf can test all analyzers and copy mapp from another index and monitor your indexes... http://www.elasticsearch.org/guide/en/elasticsearch/client/community/current/health.html

    0 讨论(0)
  • 2021-02-14 17:37

    To use a field-specific analyzer you need to specify this field in the query. Otherwise, default analyzer is used. Try

    curl -XGET 'localhost:9200/twitter/_search?q=message:fight'
    

    or

    curl -XGET 'localhost:9200/twitter/_search?df=message&q=looking'
    
    0 讨论(0)
提交回复
热议问题