You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Woody Anderson (JIRA)" <ji...@apache.org> on 2010/07/18 02:18:49 UTC

[jira] Updated: (LUCENE-2543) expose position information in SegmentReader, add method getPosition(term)

     [ https://issues.apache.org/jira/browse/LUCENE-2543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Woody Anderson updated LUCENE-2543:
-----------------------------------

    Attachment: LUCENE-2543.patch

adds the getPosition(Term) method, 'tests' it by iterating an enum and validating that the positions match and are strict monotonic etc.


> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org