lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Umesh Prasad <umesh.i...@gmail.com>
Subject Re: Substring and Case In sensitive Search
Date Thu, 21 Aug 2014 00:26:17 GMT
The performance of wild card queries and specially prefix wild card query
can be quite slow.

http://lucene.apache.org/core/4_9_0/core/org/apache/lucene/search/WildcardQuery.html

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

Take a look at ReversedWildcardFilter

http://lucene.apache.org/solr/4_9_0/solr-core/org/apache/solr/analysis/ReversedWildcardFilterFactory.html

The blog post describes it nicely ..

http://solr.pl/en/2011/10/10/%E2%80%9Ccar-sale-application%E2%80%9D-%E2%80%93-solr-reversedwildcardfilter-%E2%80%93-lets-optimize-wildcard-queries-part-8/



On 19 August 2014 22:19, Jack Krupansky <jack@basetechnology.com> 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: solr-user@lucene.apache.org
> 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
Search Lead@flipkart.com

 in.linkedin.com/pub/umesh-prasad/6/5bb/580/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message