renjithkathirolil / solr-php-client

Automatically exported from code.google.com/p/solr-php-client
Other
0 stars 0 forks source link

How to enable wildcard #79

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
 '*' or '?' not allowed as first character in WildcardQuery i'm getting this error. How to enable wildcard query

Thanks

Original issue reported on code.google.com by hasani...@gmail.com on 30 May 2012 at 9:51

GoogleCodeExporter commented 9 years ago
This is really a Solr server configuration question. By default they don't 
allow it because it can be quite a costly query - they usually prefer you to 
use other methods.

One such example is a reverse wildcard filter: 
http://lucidworks.lucidimagination.com/display/solr/Filter+Descriptions#FilterDe
scriptions-ReversedWildcardFilter

The edismax handler is the only handler that ships with default solr 
configuration that by default enables suffix wildcards (queries of the form 
"*stuff"). I think it expects you use such a filter to make it efficient.

Please look at the solr wiki and mailing lists. This project is just a PHP 
client.

http://lucene.apache.org/solr/

Original comment by donovan....@gmail.com on 30 May 2012 at 1:22