You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Causse (JIRA)" <ji...@apache.org> on 2009/10/08 20:27:31 UTC

[jira] Created: (LUCENE-1964) InstantiatedIndex : TermFreqVector is missing

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


[jira] Updated: (LUCENE-1964) InstantiatedIndex : TermFreqVector is missing

Posted by "David Causse (JIRA)" <ji...@apache.org>.
     [ 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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


[jira] Updated: (LUCENE-1964) InstantiatedIndex : TermFreqVector is missing

Posted by "David Causse (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Causse updated LUCENE-1964:
---------------------------------

    Attachment: term-vector-fix.patch

Fix the TermVector storing problem.

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