solr - execute multiple queries in one request

后端 未结 3 1870
感情败类
感情败类 2021-01-13 11:41

Is there a way to execute multiple queries in a single solr request and get the union of results as response

my simplified schema would look like a name field and a

相关标签:
3条回答
  • 2021-01-13 12:16

    Currently not possible, Look at this request, possibly when this fix is in place

    https://issues.apache.org/jira/browse/SOLR-1093

    0 讨论(0)
  • 2021-01-13 12:16

    I think this can be done w/ Field Collapsing

    http://wiki.apache.org/solr/FieldCollapsing#Quick_Start

    Their example is similar except instead of types they are splitting the price into ranges:

    We can find the top documents that also match arbitrary queries with the group.query command (much like facet.query). For example, we could use this to find the top 3 documents with in different price ranges:

    http://localhost:8983/solr/select?wt=json&indent=true&fl=name,price&q=memory&group=true&group.query=price:[0+TO+99.99]&group.query=price:[100+TO+*]&group.limit=3
    

    In your case group.limit=10.

    0 讨论(0)
  • 2021-01-13 12:25

    Federated Search

    Distributed Search - needs all the definition schemas to look the same

    0 讨论(0)
提交回复
热议问题