As Erick said, Term positions are kept regardless of whether you store term vectors. The positional information is needed for phrase queries, span queries, etc. You certainly don't lose the ability to use phrase queries if you do not store term vectors. If you check out the Posting class in DocumentWriter you can trace around and see how positions are stored at the same basic level as the term that is stored. Positions are first class citizens <g>.

- Mark

Erick Erickson wrote:
Erik Hatcher sez no.

Erick

On 2/14/07, karl wettin <[EMAIL PROTECTED]> wrote:


14 feb 2007 kl. 15.03 skrev Erick Erickson:

> My reasoning was that I do need position information since I need
> to do Span
> queries,  but character information (WITH_OFFSETS) isn't necessary
> here/now.
> So I thought I'd make a small test to see if this was worth
> pursuing. If
> omitting offsets had only saved me 10%, for instance, I wouldn't
> pursue it
> very much. But 75+% is a savings well worth pursuing.

Spans don't rely on the TermPositionVector, do they?

I always thought that the data from IndexReader#termPositions came
from some
other source. Or so.

--
karl



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to