问题
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