On Thu, Mar 4, 2010 at 10:33 PM, Lance Norskog <goks...@gmail.com> wrote:
> I have added facet.limit=5 to the above to make this easier. Here is
> the <facets> part of the response:
>
>
> - <lst name="facet_counts">
>  <lst name="facet_queries" />
> - <lst name="facet_fields">
> - <lst name="features">
>  <int name="0">0</int>
>  <int name="000">0</int>
>  <int name="1">0</int>
>  <int name="1024">0</int>
>  <int name="118">0</int>
>  <int>2</int>
>  </lst>
>  </lst>
>  <lst name="facet_dates" />
>  </lst>
>
> (What is the <int>2</int>?)

That's what happens when you have a null name/key in the NamedList -
For xml, it leaves out the name tag.
If we were doing it again, perhaps it should be put in a different
place (i.e. encapsulate all of the term counts in a list and allow
other info like "missing" right below the field level.

<lst name="features">
  <int name="missing">2</int>
  <lst name="terms">
    <int name="0">0</int>
    <int name="000">0</int>
    ...

IIRC there have been threads about this in the past too.

-Yonik
http://www.lucidimagination.com

Reply via email to