[ 
https://issues.apache.org/jira/browse/LUCENE-2694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12980081#action_12980081
 ] 

Michael McCandless commented on LUCENE-2694:
--------------------------------------------

The failure in TestFSTs is because PrefixCodedTermsReader is somehow returning 
an OrdTermState when its terms index (var gap) does not support ord.

The ord member of PrefixCodedTermState is undefined when the terms dict doesn't 
support ord (ie when ord() throws UOE).

So to fix this we should fix TestFSTs to go back to calling .ord() and catching 
the UOE, maybe?  Separately, make sure you don't overwrite storeOrds in that 
test.  Ie the test randomly sets it to true or false (so that we test both 
cases); only if the terms index cannot suppord ord should we wire it to false.  
If it can support ord then we should leave it as the random value...

> MTQ rewrite + weight/scorer init should be single pass
> ------------------------------------------------------
>
>                 Key: LUCENE-2694
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2694
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>            Reporter: Michael McCandless
>            Assignee: Simon Willnauer
>             Fix For: 4.0
>
>         Attachments: LUCENE-2694-FTE.patch, LUCENE-2694.patch, 
> LUCENE-2694.patch, LUCENE-2694.patch, LUCENE-2694.patch, LUCENE-2694.patch, 
> LUCENE-2694.patch, LUCENE-2694.patch, LUCENE-2694.patch, 
> LUCENE-2694_hack.patch
>
>
> Spinoff of LUCENE-2690 (see the hacked patch on that issue)...
> Once we fix MTQ rewrite to be per-segment, we should take it further and make 
> weight/scorer init also run in the same single pass as rewrite.

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

Reply via email to