lucene-dev mailing list archives

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


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:
>             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:
For additional commands, e-mail:

View raw message