Just a correction to what David says... text_rev is for allowing wildcard at the beginning of a term, not the end. Wildcards at the end work on standard text field types.

        Erik


On Apr 9, 2010, at 3:08 PM, Smiley, David W. wrote:
If the user query is not going to have wildcards then use NGrams. I talk about the black art of ngrams in my book. There are multiple ways of configuring it. If the query will have wildcards, Solr comes with a sample schema with a field type named, "text_rev" (I think that's what it's named) which supports wildcard searches such as "ado*". You could add the wildcard if it's not there. I've done this sort of thing with various boosting to get exact matches scored higher.

For doing wildcards in a query string against NGram indexes, you'll have to wait till I am granted permission by my employer to open- source this (~2 months).

~ David Smiley
Author: http://www.packtpub.com/solr-1-4-enterprise-search-server/

On Apr 9, 2010, at 2:42 PM, <n...@frameweld.com> <n...@frameweld.com> wrote:

- How am I able to use wildcard searches with Solr? EX: querying Ado with a result that would retrieve something like Adolescent.








Reply via email to