lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Woody Anderson (JIRA)" <>
Subject [jira] Commented: (LUCENE-2543) expose position information in SegmentReader, add method getPosition(term)
Date Sun, 18 Jul 2010 06:12:50 GMT


Woody Anderson commented on LUCENE-2543:

i took a quite peek at making a patch for this for the lucene/trunk branch. SegmentReader
has changed quite a lot with the codec stuff. If someone familiar with that new code knows
the quick/easy way to have a... i guess a FieldProducer impl for the SegmentReader that can
expose position information, that'd be great.
I would imagine that for a single segment we're still very capable of knowing the position
of term.

I have code that depends on this functionality, i would like to be able to try it all out
against lucene/trunk as it moves forward.

> expose position information in SegmentReader, add method getPosition(term)
> --------------------------------------------------------------------------
>                 Key: LUCENE-2543
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>    Affects Versions: 3.0.2
>            Reporter: Woody Anderson
>             Fix For: 3.0.2, 4.0
>         Attachments: LUCENE-2543.patch
> add public long getPosition(Term) to SegmentReader.
> Also, update the impl of getPosition in TermInfosReader (called by new method) to use
enumerator.scanTo() to avoid creating many intermediate Term objects.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message