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

Make IndexReader/Searcher ctors readOnly=true by default

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.1
    • Fix Version/s: 3.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: