Hi!

I've experienced a strange behaviour with several versions of SOLR
(currently testing with 5.4.1, but this effects can also be reproduced
with 5.3.1). Some facet values are not returned when querying
"*:*", but only when I search for something special, say text "foo".

I've stripped down both config/schema and data as far as possible,
files are attached (hope this is ok on the list).

How to reproduce:

Set up a core with the config and schema attached to this post:

$ bin/solr start
$ bin/solr create_core -c test
$ bin/solr stop
$ cp solrconfig.xml schema.xml server/solr/test/conf/
$ bin/solr start

Upload data:

$ curl 'http://localhost:8983/solr/test/update?commit=true' -H 
'Content-type:application/json' -d @data.json

Search for "*:*":

$ curl 
'http://localhost:8983/solr/test/select?q=*%3A*&rows=0&wt=json&indent=true&facet=true&facet.field=tags_hierarchy'

The facet value "1/tax/downloads/i/" will not be returned, but it will
be returned when searching for "foo" (or any other text):

$ curl 
'http://localhost:8983/solr/test/select?q=foo&rows=0&wt=json&indent=true&facet=true&facet.field=tags_hierarchy'

I also noted differences when modifying the data:

- Renaming the field "tags_hierarchy" to "tags" seems to fix the
  issue.
- The same applies to renaming "1/tax/downloads/i/" to "1/tax/d/i/".

Is this a known or unknown bug, or did I do something wrong? In the
former case: is there a feasible workaround. (Of course, renaming
comes to mind.)

Thanks in advance!

Regards
Sebastian

Attachment: solrconfig.xml
Description: XML document

Attachment: schema.xml
Description: XML document

Attachment: data.json
Description: application/json

Reply via email to