Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-6212

Remove IndexWriter's per-document analyzer add/updateDocument APIs

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0, 5.1, 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      IndexWriter already takes an analyzer up-front (via
      IndexWriterConfig), but it also allows you to specify a different one
      for each add/updateDocument.

      I think this is quite dangerous/trappy since it means you can easily
      index tokens for that document that don't match at search-time based
      on the search-time analyzer.

      I think we should remove this trap in 5.0.

        Attachments

        1. LUCENE-6212.patch
          80 kB
          Michael McCandless

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              mikemccand Michael McCandless
            • Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: