Elasticsearch not returning singular/plural matches

后端 未结 3 1023
名媛妹妹
名媛妹妹 2021-02-02 03:01

I am using a php library of elasticsearch to index and find documents in my website. This is the code for creating the index:

curl -XPUT \'http://localhost:9200/         


        
3条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-02 03:19

    Since 'porterStem' filter is oversensitive, it is more suited if you use 'minimal_english' filter. 'porterStem' creates similar tokens for words such as :

    searching for 'Test' will result you 'Test', 'Tests', 'Testing', 'Tester' et. al.

    But 'minimal_english' will only yield - 'Test' and 'Tests'.

提交回复
热议问题