lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-3260) need a test that uses termsenum.seekExact() (which returns true), then calls next()
Date Wed, 29 Jun 2011 22:51:28 GMT

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

Michael McCandless updated LUCENE-3260:
---------------------------------------

    Attachment: LUCENE-3260.patch

Patch, w/ new test showing the issue in MTE when you next() after seekExact(), and w/ the
fix for MTE.

I also removed unnecessary seek calls from LuceneTaxonomyWriter.

> need a test that uses termsenum.seekExact() (which returns true), then calls next()
> -----------------------------------------------------------------------------------
>
>                 Key: LUCENE-3260
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3260
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: Robert Muir
>            Assignee: Michael McCandless
>         Attachments: LUCENE-3260.patch
>
>
> i tried to do some seekExact (where the result must exist) then next()ing in the faceting
module,
> and it seems like there could be a bug here.
> I think we should add a test that mixes seekExact/seekCeil/next like this, to ensure
that
> if seekExact returns true, that the enum is properly positioned.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message