Query multiple collections with different fields in solr

后端 未结 2 545
广开言路
广开言路 2020-12-13 16:12

Given the following (single core) query\'s:

http://localhost/solr/a/select?indent=true&q=*:*&rows=100&start=0&wt=json
http://localhost/solr/b         


        
2条回答
  •  春和景丽
    2020-12-13 16:28

    Shards should be used in Solr

    When an index becomes too large to fit on a single system, or when a single query takes too long to execute

    so the number and names of the columns should always be the same. This is specified in this document (where the previous quote also come from): http://wiki.apache.org/solr/DistributedSearch

    If you leave your query as it is and make the two shards with the same fields this shoudl just work as expected.

    If you want more info about how the shards work in SolrCould have a look at this docuemtn also: http://wiki.apache.org/solr/SolrCloud

提交回复
热议问题