Lucene - Core
  1. Lucene - Core
  2. LUCENE-1964

InstantiatedIndex : TermFreqVector is missing

    Details

    • Type: Bug Bug
    • Status: Reopened
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.9
    • Fix Version/s: None
    • Component/s: modules/other
    • Labels:
      None
    • Environment:

      java 1.6

    • Lucene Fields:
      New, Patch Available

      Description

      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.

      1. iiw-regression-fix.patch
        1 kB
        David Causse
      2. term-vector-fix.patch
        16 kB
        David Causse

        Activity

        David Causse created issue -
        Hide
        David Causse added a comment -

        Fix the TermVector storing problem.

        Show
        David Causse added a comment - Fix the TermVector storing problem.
        David Causse made changes -
        Field Original Value New Value
        Attachment term-vector-fix.patch [ 12421645 ]
        Hide
        David Causse added a comment -

        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.

        Show
        David Causse added a comment - 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.
        David Causse made changes -
        Attachment iiw-regression-fix.patch [ 12421649 ]
        Mark Thomas made changes -
        Workflow jira [ 12478986 ] Default workflow, editable Closed status [ 12562623 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12562623 ] jira [ 12583572 ]
        Hide
        Erick Erickson added a comment -

        2013 Old JIRA cleanup

        Show
        Erick Erickson added a comment - 2013 Old JIRA cleanup
        Erick Erickson made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Won't Fix [ 2 ]
        Erick Erickson made changes -
        Resolution Won't Fix [ 2 ]
        Status Resolved [ 5 ] Reopened [ 4 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            David Causse
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development