[
https://issues.apache.org/jira/browse/LUCENE-1964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Causse updated LUCENE-1964:
---------------------------------
Attachment: iiw-regression-fix.patch
My previous patch has broken the Writer, sorry...
I tried to fix but this class is way too much complicated for me, so here my
attempt to repair my mistake.
> 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
> Attachments: iiw-regression-fix.patch, term-vector-fix.patch
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]