You are looking for wildcard queries but they can be quite costly and you
will need to benchmark performance ..
Specially Suffix wild card queries  (of type *abc) are quite costly ..

You can convert a suffix query into a prefix query by using a
ReverseTokenFilter during index time analysis.

A search on older mails will be useful ..
http://search-lucene.com/?q=wild+card+performance

Uwe's mail explains why performance optimization of Suffix wild card
queries is difficult ..
http://search-lucene.com/m/w1CAyxDpbC1/wild+card+performance&subj=Wild+Card+Query+Performance





On 18 July 2014 20:38, prashantc88 <prashant.chau...@searshc.com> wrote:

> Hi,
>
> My requirement is to give a match whenever a string is found within the
> indexed data of a field irrespective of where it is found.
>
> For example, if I have a field which is indexed with the data "abc". Now
> any
> of the following query string must give a match: xyzabc,xyabc, abcxyz ..
>
> I am using *solr.KeywordTokenizerFactory* as the tokenizer class and
> *solr.LowerCaseFilterFactory* filter as index time in *schema.xml*.
>
> Could anyone help me out as to how I can achieve the functionality.
>
> Thanks in advance.
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Match-query-string-within-indexed-field-tp4147896.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 
---
Thanks & Regards
Umesh Prasad

Reply via email to