Apache solr search part of the word

前端 未结 5 2191
灰色年华
灰色年华 2020-12-07 23:31

I\'m using apache solr search engine for indexing my website database..

I\'m using django+http://haystacksearch.org/

So let\'s say I have document that have

5条回答
  •  悲哀的现实
    2020-12-07 23:40

    A different approach, if you are having trouble with a small set of words, would be to use the solr.SynonymFilterFactory

    http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.SynonymFilterFactory

    You just have to maintain a simple text file that contains synonyms:

    chick peep chicken
    dawg hound dog
    moggie puss kitten cat
    

    Plurals should take care of themselves with other filters.

提交回复
热议问题