Wildcard searching and highlighting with Solr 1.4

前端 未结 2 1584
情书的邮戳
情书的邮戳 2020-12-16 04:35

I\'ve got a pretty much vanilla install of SOLR 1.4 apart from a few small config and schema changes.



        
相关标签:
2条回答
  • 2020-12-16 05:07

    Or you can grab the latest nightly build and use edismax (ExtendedDismaxQParser).

    It handles both trailing and leading wildcards.

    0 讨论(0)
  • 2020-12-16 05:19

    From what I know you can't use wildcards with the dismax handler, see http://wiki.apache.org/solr/DisMaxRequestHandler#q.

    To simulate wildcard searching I used EdgeNGrams following some of the instructions here: http://www.lucidimagination.com/blog/2009/09/08/auto-suggest-from-popular-queries-using-edgengrams/. Actually I really only added the edgytext fieldtype to schema.xml and changed the fieldtype of the field I wanted to search.

    Hope this helps!

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