You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Youri Westerman <yo...@pluxcustoms.nl> on 2012/04/02 11:49:34 UTC

Re: Empty facet counts

Alright well I discovered that php converts '.' in a variable name to '_'
causing my request to contain a variable to a non-exsistent facet_field.

2012/3/30 William Bell <bi...@gmail.com>

> Can you also include a /select?q=*:*&wt=xml
>
> ?
>
> On Thu, Mar 29, 2012 at 11:47 AM, Erick Erickson
> <er...@gmail.com> wrote:
> > Hmmm, looking at your schema, faceting on a <uniqueKey> really doesn't
> make
> > all that much sense, there will always be exactly one of them. At
> > least it's highly
> > questionable.
> >
> > But that's not your problem and what's wrong isn't at all obvious. Can
> you try
> > pasting the results of adding &debugQuery=on?
> >
> > Best
> > Erick
> >
> > On Thu, Mar 29, 2012 at 11:12 AM, Youri Westerman <yo...@pluxcustoms.nl>
> wrote:
> >> The version is 3.5.0.2011.11.22.14.54.38. I did not apply any patches,
> but
> >> then again it is not my server.
> >> Do you have a clue on what is going wrong here?
> >>
> >> Regards,
> >>
> >> Youri
> >>
> >>
> >> 2012/3/29 Bill Bell <bi...@gmail.com>
> >>>
> >>> Send schema.xml and did you apply any patches? What version of Solr?
> >>>
> >>> Bill Bell
> >>> Sent from mobile
> >>>
> >>>
> >>> On Mar 29, 2012, at 5:26 AM, Youri Westerman <yo...@pluxcustoms.nl>
> wrote:
> >>>
> >>> > Hi,
> >>> >
> >>> > I'm currently learning how to use solr and everything seems pretty
> >>> > straight
> >>> > forward. For some reason when I use faceted queries it returns only
> >>> > empty
> >>> > sets in the facet_count section.
> >>> >
> >>> > The get params I'm using are:
> >>> >  ?q=*:*&rows=0&facet=true&facet.field=urn
> >>> >
> >>> > The result:
> >>> >  "facet_counts": {
> >>> >
> >>> >      "facet_queries": { },
> >>> >      "facet_fields": { },
> >>> >      "facet_dates": { },
> >>> >      "facet_ranges": { }
> >>> >
> >>> >  }
> >>> >
> >>> > The urn field is indexed and there are enough entries to be counted.
> >>> > When
> >>> > adding facet.method=Enum, nothing changes.
> >>> > Does anyone know why this is happening? Am I missing something?
> >>> >
> >>> > Thanks in advance!
> >>> >
> >>> > Youri
> >>
> >>
>
>
>
> --
> Bill Bell
> billnbell@gmail.com
> cell 720-256-8076
>