Apache solr search part of the word

前端 未结 5 2166
灰色年华
灰色年华 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:56

    When I've used

    
    

    for making wildcard search from Brian's answer, Solr indexing time dramaticly increased. In more than 20 times! The other decision of wildcard searching problem I found here:

    http://www.lucidimagination.com/blog/2009/09/08/auto-suggest-from-popular-queries-using-edgengrams/

    You need just add filter

    
    

    (default tokenizer - solr.WhitespaceTokenizerFactory in index block of FieldType). For me result was the same with less system costs.

提交回复
热议问题