Lucene - Core
  1. Lucene - Core
  2. LUCENE-4862

Ability to terminate queries on a per-segment basis

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Spin-off of LUCENE-4752. The idea is to add a marker exception that tells IndexSearcher to terminate the collection of the current segment.

        Issue Links

          Activity

          Hide
          Adrien Grand added a comment -

          Patch that adds a new CollectionTerminatedException. When thrown from Collector.collect, IndexSearcher swallows it and terminates collection of the current IndexReader leaf.

          Show
          Adrien Grand added a comment - Patch that adds a new CollectionTerminatedException. When thrown from Collector.collect, IndexSearcher swallows it and terminates collection of the current IndexReader leaf.
          Hide
          Shai Erera added a comment -

          Looks good.

          Show
          Shai Erera added a comment - Looks good.
          Hide
          Commit Tag Bot added a comment -

          [trunk commit] Adrien Grand
          http://svn.apache.org/viewvc?view=revision&revision=1459400

          LUCENE-4862: Added CollectionTerminatedException to allow permature termination of the collection of a single IndexReader leaf.

          Show
          Commit Tag Bot added a comment - [trunk commit] Adrien Grand http://svn.apache.org/viewvc?view=revision&revision=1459400 LUCENE-4862 : Added CollectionTerminatedException to allow permature termination of the collection of a single IndexReader leaf.
          Hide
          Adrien Grand added a comment -

          Thank you for the review Shai!

          Show
          Adrien Grand added a comment - Thank you for the review Shai!
          Hide
          Commit Tag Bot added a comment -

          [branch_4x commit] Adrien Grand
          http://svn.apache.org/viewvc?view=revision&revision=1459408

          LUCENE-4862: Added CollectionTerminatedException to allow permature termination of the collection of a single IndexReader leaf (merged from r1459400).

          Show
          Commit Tag Bot added a comment - [branch_4x commit] Adrien Grand http://svn.apache.org/viewvc?view=revision&revision=1459408 LUCENE-4862 : Added CollectionTerminatedException to allow permature termination of the collection of a single IndexReader leaf (merged from r1459400).
          Hide
          Commit Tag Bot added a comment -

          [trunk commit] Adrien Grand
          http://svn.apache.org/viewvc?view=revision&revision=1459414

          LUCENE-4862: Test early termination with executor services too.

          Show
          Commit Tag Bot added a comment - [trunk commit] Adrien Grand http://svn.apache.org/viewvc?view=revision&revision=1459414 LUCENE-4862 : Test early termination with executor services too.
          Hide
          Commit Tag Bot added a comment -

          [branch_4x commit] Adrien Grand
          http://svn.apache.org/viewvc?view=revision&revision=1459416

          LUCENE-4862: Test early termination with executor services too (merged from r1459414).

          Show
          Commit Tag Bot added a comment - [branch_4x commit] Adrien Grand http://svn.apache.org/viewvc?view=revision&revision=1459416 LUCENE-4862 : Test early termination with executor services too (merged from r1459414).
          Hide
          Uwe Schindler added a comment -

          Closed after release.

          Show
          Uwe Schindler added a comment - Closed after release.

            People

            • Assignee:
              Adrien Grand
              Reporter:
              Adrien Grand
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development