问题描述
我已成功为文件建立索引,并希望能够使用通配符进行搜索.我目前正在使用dismaxRequestHandler(QueryType = dismax)进行搜索,以便可以在所有字段中搜索查询.
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.
像计算机"这样的常规搜索会返回结果,但"com * er"不会返回任何结果.类似地,类似"co?mput?r"的搜索不会返回任何结果.
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.
有人可以告诉我一种继续使用dismax并能够在"q"字段中进行通配符搜索的方法吗?edismax处理程序有这个吗?如果是这样,我该如何使用它.我有Solr 1.4.1.
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.
请帮帮我.
谢谢.
伊朗.
推荐答案
从哈德森.在RequestHandler中使用<str name="defType">edismax</str>
激活edismax.
Grab latest (trunk) build from Hudson. Use <str name="defType">edismax</str>
in the RequestHandler to activate edismax.
这篇关于使用dismax处理程序进行通配符搜索?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!