lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Isan Fulia <isan.fu...@germinait.com>
Subject Re: Query failing because of omitTermFreqAndPositions
Date Tue, 04 Oct 2011 05:41:01 GMT
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 <lucene@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.fulia@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.

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