lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Krupansky" <>
Subject Re: Substring and Case In sensitive Search
Date Thu, 21 Aug 2014 14:51:58 GMT
Yes, wildcards can be slow. That's why I suggested that the use cases be 
reviewed more carefully.

But... using the reversed wildcard filter doesn't accomplish any good for 
the substring case where there is a wildcard on both ends.

A prefix wildcard query should actually deliver decent performance, as long 
as the prefix isn't too short (e.g., "cat*"). See PrefixQuery:

ngram filters can also be used, but... that can make the index rather large.

-- Jack Krupansky

-----Original Message----- 
From: Umesh Prasad
Sent: Wednesday, August 20, 2014 8:26 PM
Subject: Re: Substring and Case In sensitive Search

The performance of wild card queries and specially prefix wild card query
can be quite slow.

Also, you won't be able to time them out.

Take a look at ReversedWildcardFilter

The blog post describes it nicely ..

On 19 August 2014 22:19, Jack Krupansky <> wrote:

> Substring search a string field using wildcard, "*", at beginning and end
> of query term.
> Case-insensitive match on string field is not supported.
> Instead, copy the string field to a text field, use the keyword tokenizer,
> and then apply the lower case filter.
> But... review your use case to confirm whether you really need to use
> "string" as opposed to "text" field.
> -- Jack Krupansky
> -----Original Message----- From: Nishanth S
> Sent: Tuesday, August 19, 2014 12:03 PM
> To:
> Subject: Substring and Case In sensitive Search
> Hi,
> I am  very new to solr.How can I allow solr search on a string field case
> insensitive and substring?.
> Thanks,
> Nishanth

Thanks & Regards
Umesh Prasad

View raw message