SimpleText sumTotalTermFreq is wrong if only positions are omitted
------------------------------------------------------------------

                 Key: LUCENE-3724
                 URL: https://issues.apache.org/jira/browse/LUCENE-3724
             Project: Lucene - Java
          Issue Type: Bug
    Affects Versions: 4.0
            Reporter: Robert Muir


ant test -Dtestcase=TestOmitPositions -Dtestmethod=testBasic 
-Dtests.seed=-6c9bd4a6197b9463:-71d0d11bc2db9a15:697690b3dff2369 
-Dargs="-Dfile.encoding=UTF-8"
    [junit] java.lang.AssertionError: sumTotalTermFreq=0,sumDocFreq=400
    [junit]     at 
org.apache.lucene.search.CollectionStatistics.<init>(CollectionStatistics.java:38)

This assert fails because #of positions for the field is < #of postings, which 
is impossible.

>From memory i think SimpleText calculates sumTotalTermFreq "one the fly" by 
>reading the positions from its text file...
In this case it should write the stat explicitly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to