[
https://issues.apache.org/jira/browse/LUCENE-2543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12889572#action_12889572
]
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: https://issues.apache.org/jira/browse/LUCENE-2543
> 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: [email protected]
For additional commands, e-mail: [email protected]