Lucene - Core
  1. Lucene - Core
  2. LUCENE-2528

CFSFileDirectory: Allow a Compound Index file to be deployed as a complete index without segment files

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core/store
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      This patch presents a compound index file as a Lucene Directory class. This allows you to deploy one file to a query server instead of deploying a directory with the compound file and two segment files.

      1. LUCENE-2528.patch
        7 kB
        Lance Norskog

        Activity

        Hide
        Lance Norskog added a comment -

        This patch has two problems:
        1) CFSFileDirectory is in o.a.l.index instead of o.a.l.store because it uses SegmenInfo.commit(), which is not public.
        2) It uses a hacky way to get the number of documents in the index.
        3) It does not know how to get the codec, and so defaults to StandardCodec.

        The right way to fix #2 and #3 is to add the information to the compound file header.

        Show
        Lance Norskog added a comment - This patch has two problems: 1) CFSFileDirectory is in o.a.l.index instead of o.a.l.store because it uses SegmenInfo.commit(), which is not public. 2) It uses a hacky way to get the number of documents in the index. 3) It does not know how to get the codec, and so defaults to StandardCodec. The right way to fix #2 and #3 is to add the information to the compound file header.

          People

          • Assignee:
            Unassigned
            Reporter:
            Lance Norskog
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development