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

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

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.0, 5.1, 6.0
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: