lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claudio R <user...@yahoo.com.br.INVALID>
Subject Facet on multicore search when one field exists only in one of cores
Date Fri, 14 Jun 2019 13:54:18 GMT
Hi,
I am using Solr 6.6.0 in mode standalone with 2 cores.
The first core has the schema:

id
fieldA
fieldB

The second core has the schema:

id
fieldA
fieldC

When I try this request to get facet of fields: fieldA, fieldB and fieldC on multicore search,
I get error:

http://localhost:8983/solr/core1/select?q=*:*&shards=localhost:8983/solr/core1,localhost:8983/solr/core2&fl=*,[shard]&facet=true&facet.field=fieldA&facet.field=fieldB&facet.field=fieldC

<str name="msg">Error from server at http://localhost:8983/solr/core2: undefined field:
"fieldB"</str>
<int name="code">400</int>            

Is there any config / parameter in Solr to avoid this throw exception on facet of multicore
when one field not exists in a core?

If I have this documents on cores:

core1:
id: "10"
fieldA: "productA"
fieldB: "value1"

core2:
id: "23"
fieldA: "productA"
fieldC: "value2"

I wish get a response like this:

Facet
fieldA
  productA (2)
fieldB
  value1 (1)
fieldC
  value2 (1)

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message