how index words with their prefix in solr?

前端 未结 1 470
时光取名叫无心
时光取名叫无心 2021-01-28 14:00

I use solr 3.3 to index my files, I want solr index words with their suffixes for example I want to index colorful like color and when i search color solr show any document that

1条回答
  •  粉色の甜心
    2021-01-28 14:31

    You would need to apply analysis on the field.

    Stemming - Its a kind of dictionary. This would reduce the word indexed and searched to its roots.
    e.g. color, colors, colored would match your searches, if any word is searched.

    There was would be cases where the above stemming does not work.
    You can use SynonymFilter, This allows you to specify words which you term as synonym and would match the search results.

    0 讨论(0)
提交回复
热议问题