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

Make IndexReader/Searcher ctors readOnly=true by default

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.1
    • 3.0
    • None
    • None
    • New

    Description

      Another "change the defaults" in 3.0.

      Right now you get a read/write reader from IndexReader.open and new IndexSearcher(...), and reserving the right to write causes thread contention (on isDeleted).

      In 3.0 let's make readOnly reader the default, but still allow opening a read/write IndexReader.

      Attachments

        1. LUCENE-1558.patch
          3 kB
          Michael McCandless

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: