lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Causse (JIRA)" <j...@apache.org>
Subject [jira] Created: (LUCENE-1964) InstantiatedIndex : TermFreqVector is missing
Date Thu, 08 Oct 2009 18:27:31 GMT
InstantiatedIndex : TermFreqVector is missing
---------------------------------------------

                 Key: LUCENE-1964
                 URL: https://issues.apache.org/jira/browse/LUCENE-1964
             Project: Lucene - Java
          Issue Type: Bug
          Components: contrib/*
    Affects Versions: 2.9
         Environment: java 1.6
            Reporter: David Causse


TermFrecVector is missing when index is created via constructor.
The constructor expect that fields with TermVector are retreived with the getFields call,
but this call returns only stored field, but such fields are never/rarely stored.
I've attached a patch to fix this issue.
I had to add a int freq field to InstantiatedTermDocumentInformation because we are not sure
we can use the size of termPositions array as freq information, this information may not be
available with TermVector.YES.
Don't know if did well but works with unit test attached.


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


Mime
View raw message