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