Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-1143

Return partial results when a connection to a shard is refused

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: search
    • Labels:
      None

      Description

      If any shard is down in a distributed search, a ConnectException it thrown.

      Here's a little patch that change this behaviour: if we can't connect to a shard (ConnectException), we get partial results from the active shards. As for TimeOut parameter (https://issues.apache.org/jira/browse/SOLR-502), we set the parameter "partialResults" at true.

      This patch also adresses a problem expressed in the mailing list about a year ago (http://www.nabble.com/partialResults,-distributed-search---SOLR-502-td19002610.html)

      We have a use case that needs this behaviour and we would like to know your thougths about such a behaviour? Should it be the default behaviour for distributed search?

        Attachments

        1. SOLR-1143-3.patch
          15 kB
          Martijn van Groningen
        2. SOLR-1143-2.patch
          16 kB
          Martijn van Groningen
        3. SOLR-1143.patch
          4 kB
          Nicolas Dessaigne

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dessaigne Nicolas Dessaigne
              • Votes:
                17 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: