lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chantal Ackermann <chantal.ackerm...@btelligent.de>
Subject Re: i want to use something like *query* similar to database - %query% like search
Date Wed, 02 Dec 2009 11:04:48 GMT
The DismaxRequestHandler can handle that query input.
Add qt=dismax to your call.
There is a default configuration of dismax in the solrconfig sample that 
ships with each release. You want to adopt that to your schema. Dismax 
will also allow you to search on multiple selected fields with different 
weightings and also boost phrase hits etc. etc.

If you want to allow leading wildcards on certain fields for the 
standard query handler - use ReversedWildcardFilterFactory:
http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.ReversedWildcardFilterFactory

Cheers,
Chantal

Olivier Dobberkau schrieb:
> Am 02.12.2009 um 09:55 schrieb amittripathi:
> 
>> its accepting the trailing wildcard character but solr is not accepting the
>> leading wildcard character
> 
> The Error message says it all.
> 
> '*' or '?' not allowed as first character in WildcardQuery
> 
> solr is not SQL.
> 
> Olivier
> 
> --
> 
> Olivier Dobberkau

Mime
View raw message