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. term-vector-fix.patch
        16 kB
        David Causse
      2. iiw-regression-fix.patch
        1 kB
        David Causse

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:

              Development