Hi Mike, Thanks for the information.But why is it that once omiited positions in the past , it will always omit positions even if omitPositions is made false.
Thanks, Isan Fulia. On 29 September 2011 17:49, Michael McCandless <luc...@mikemccandless.com>wrote: > Once a given field has omitted positions in the past, even for just > one document, it "sticks" and that field will forever omit positions. > > Try creating a new index, never omitting positions from that field? > > Mike McCandless > > http://blog.mikemccandless.com > > On Thu, Sep 29, 2011 at 1:14 AM, Isan Fulia <isan.fu...@germinait.com> > wrote: > > Hi All, > > > > My schema consisted of field textForQuery which was defined as > > <field name="textForQuery" type="text" indexed="true" stored="false" > > multiValued="true"/> > > > > After indexing 10 lakhs of documents I changed the field to > > <field name="textForQuery" type="text" indexed="true" stored="false" > > multiValued="true" *omitTermFreqAndPositions="true"*/> > > > > So documents that were indexed after that omiited the position > information > > of the terms. > > As a result I was not able to search the text which rely on position > > information for eg. "coke studio at mtv" even though its present in some > > documents. > > > > So I again changed the field textForQuery to > > <field name="textForQuery" type="text" indexed="true" stored="false" > > multiValued="true"/> > > > > But now even for new documents added the query requiring positon > > information is still failing. > > For example i reindexed certain documents that consisted of "coke studio > at > > mtv" but still the query is not returning any documents when searched for > > *textForQuery:"coke studio at mtv"* > > > > Can anyone please help me out why this is happening > > > > > > -- > > Thanks & Regards, > > Isan Fulia. > > > -- Thanks & Regards, Isan Fulia.