distributed - Querying Solr multiple indexes with different schema in single query -


we have situation keeping 2 indexes different schemas.

for example: suppose have index seller key value seller id , other attributes seller information. index book book id unique key , keeps book related information.

is possible query both these indexes in single query , collective results?

i have checked solr per findings can through distributed search in solr works on same kind of schema being distributed in @ max 3 indexes.

i newbie solr please ignore if stupid question.

you need think makes sense search query there rules.

the first requirement unique keys need have same name , unique across collections or solr cannot collate results.

if hoping kind of sensible ranking of results you need common fields. example have 2 collections: 1 of product data , 1 containing product related documents. have unique key: id , have common title , contents fields when want query across 2 collections. have advanced search interface can query on specific fields product id.

a "unification core" typical way of handling search across 2 or more cores, see stack overflow answer on how set up

query multiple collections different fields in solr

other techniques use federated search carrot or issue 2 queries , show results in different tabs in search results.


Comments