Wildcard searches using dismax handler?

自古美人都是妖i 提交于 2019-12-10 13:48:26

问题


I have successfully indexed files, and want to be able to search using wildcards. I am currently using the dismaxRequestHandler (QueryType = dismax) for the searches so that I can search all the fields for the query.

A general search like 'computer' returns results but 'com*er' doesn't return any results. Similary, a search like 'co?mput?r' returns no results.

Could someone please tell me a way to continue using dismax and be able to do wildcard searches in the 'q' field? Does edismax handler have this? If so, How do I use it. I have Solr 1.4.1.

Please help me out.

Thanks.

Imran.


回答1:


Grab latest (trunk) build from Hudson. Use <str name="defType">edismax</str> in the RequestHandler to activate edismax.



来源:https://stackoverflow.com/questions/3208311/wildcard-searches-using-dismax-handler

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!