Alessandro, thank you for the hint. Setting facet.limit to a higher value fixes the problem.
Regards Sebastian On Fr, Feb 12, 2016, Alessandro Benedetti wrote: > I know sometime it happens, unfortunately you simply ignored the > facet.limit parameter ... > By default you show only the first 100 facets. > Showing more is going to show also the one you were thinking were missing ( > but actually were simply not shown) . > > Cheers > > On 12 February 2016 at 10:59, Sebastian Geerken <s.geer...@ping.de> wrote: > > > 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 > > > > > > > -- > -------------------------- > > Benedetti Alessandro > Visiting card : http://about.me/alessandro_benedetti > > "Tyger, tyger burning bright > In the forests of the night, > What immortal hand or eye > Could frame thy fearful symmetry?" > > William Blake - Songs of Experience -1794 England