Hi, What analyzers/filters have you configured for the field that you are searching? One could be causing the various versions of "ilike" to be indexed the same way.
Thanks Chris On Thu, Aug 20, 2009 at 5:29 PM, Vannia Rajan <kvanniara...@gmail.com>wrote: > Hi,* > > *I need some help to clarify how solr indexes documents. I have 6 > documents with various forms of the word "ilike" (complete word and not "i > like") - one having "ilike" as such and others having a special character > in > between "i" and "like". > > What i expected from solr is that, when i do a Quoted search "ilike", it > should return only the document that had "ilike" exactly. But, what i get > from solr is that various forms of the word "ilike" are also included in > the > results. Is there an option/configuration that i can do to solr so that i > will get only the result with exact word "ilike"? > * > > The result i obtained from solr is shown below, > > http://localhost:8080/solr/select/?q=%22ilike%22&fl=description,score > <response> > - > <lst name="responseHeader"> > <int name="status">0</int> > <int name="QTime">20</int> > - > <lst name="params"> > <str name="fl">description,score</str> > <str name="q">"ilike"</str> > </lst> > </lst> > - > <result name="response" numFound="5" start="0" maxScore="0.5"> > - > <doc> > <float name="score">0.5</float> > <str name="description">Ilike company is doing great!</str> > </doc> > - > <doc> > <float name="score">0.375</float> > <str name="description">I:like company is doing great!</str> > </doc> > - > <doc> > <float name="score">0.3125</float> > <str name="description">I-like it very much. Really, this can come > up!.</str> > </doc> > - > <doc> > <float name="score">0.3125</float> > <str name="description">I;like it very much. Really, i say.</str> > </doc> > - > <doc> > <float name="score">0.25</float> > - > <str name="description"> > i.like it very much. full stop can come? i don't know. > </str> > </doc> > </result> > </response* > > -- > Thanks, > Vanniarajan >