--- On Mon, 3/21/11, McGibbney, Lewis John <lewis.mcgibb...@gcu.ac.uk> wrote:

> From: McGibbney, Lewis John <lewis.mcgibb...@gcu.ac.uk>
> Subject: Implementing Facets
> To: "solr-user@lucene.apache.org" <solr-user@lucene.apache.org>
> Date: Monday, March 21, 2011, 9:50 PM
> Hi list,
> 
> I am working with a Ajax-Solr GUI but I am getting the
> following error from Firebug when launching the web app on
> Tomcat 7.0.11. The web app uses Solr version 1.4.1
> 
> >HTTP Status 400 - undefined field
> links</h1><HR size="1"
> noshade="noshade"><p><b>type</b> Status
> report</p><p><b>message</b>
> <u>undefined field
> links</u></p><p><b>description</b>
> <u>The request sent by the client was syntactically
> incorrect (undefined field links).
> 
> The facet details, as configured in Ajax-Solr are as
> follows
> 
>       'facet.field': [ 'topics',
> 'organisations', 'exchanges', 'countryCodes' ],
>       'facet.limit': 20,
>       'facet.mincount': 1,
>       'f.topics.facet.limit': 50,
>       'f.countryCodes.facet.limit': -1,
>       'facet.date': 'date',
>       'facet.date.start':
> '1987-02-26T00:00:00.000Z/DAY',
>       'facet.date.end':
> '1987-10-20T00:00:00.000Z/DAY+1DAY',
>       'facet.date.gap': '+1DAY',
>       'json.nl': 'map'
> 
> I tried configuring the above by adding the following
> snippet to the dismax requestHandler in solrconfig.xml as
> follows
> 
>      <str
> name="f.name.hl.alternateField">name</str>
>      <str
> name="f.text.hl.fragmenter">regex</str> <!--
> defined below -->
>      <str
> name="facet.field">topics</str>
>      <str
> name="facet.field">organisations</str>
>      <str
> name="facet.field">exchanges</str>
>      <str
> name="facet.field">countryCodes</str>
>      <str
> name="facet.limit">20</str>
>      <str
> name="facet.mincount">1</str>
>      <str
> name="f.topics.facet.limit.">50</str>
>      <str
> name="fcountryCodes.facet.limit.">-1</str>
>      <str
> name="facet.date">date</str>
>      <str
> name="facet.date.start">2000-01-01T00:00:00.000Z/DAY</str>
>      <str
> name="facet.date.end">2011-03-21T00:00:00.000Z/DAY+1DAY</str>
>      <str
> name="facet.date.gap">+1DAY</str>
> 
> But I am still getting the error. I am not clear about how
> and where to configure the facet details. Can anyone suggest
> how I can properly implement the facets that I want as I am
> unsure.

Could it be missing dot in <str name="fcountryCodes.facet.limit.">-1</str>?

<str name="f.countryCodes.facet.limit">-1</str>?




Reply via email to