Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wildcard searches using dismax handler?

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.

like image 698
Imran Khan Avatar asked Jul 08 '10 21:07

Imran Khan


1 Answers

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

like image 76
Jem Avatar answered Sep 28 '22 12:09

Jem