Try changing
{!ex=colour}%20material
to
{!ex=colour}material

local params syntax is a prefix to a parameter value - whitespace
might be significant so it is not removed.

-Yonik
http://www.lucidimagination.com



On Tue, Sep 8, 2009 at 8:53 AM, gareth
rushgrove<gar...@morethanseven.net> wrote:
> Hi All
>
> Hoping someone might be able to help me with a problem.
>
> I downloaded and got up and running with the latest nightly release of Solr:
> http://people.apache.org/builds/lucene/solr/nightly/solr-2009-09-08.zip
>
> In order to try out the tagging and excluding filters which have a
> note saying they are only available in 1.4.
>
> http://wiki.apache.org/solr/SimpleFacetParameters#head-4ba81c89b265c3b5992e3292718a0d100f7251ef
>
> I have a working index that I can query against, for instance the
> following returns what I would expect:
>
> http://172.16.142.130:8983/solr/products/select/?q=material:metal&fq={!tag=cl}colour:Red&start=24&rows=25&indent=on&wt=json&facet=on&facet.sort=false&facet.field=colour&facet.field=material&sort=popularity%20desc
>
> However, once I add the {!ex part it throws an exception:
>
> http://172.16.142.130:8983/solr/products/select/?q=material:metal&fq={!tag=colour}colour:Red&start=24&rows=25&indent=on&wt=json&facet=on&facet.sort=false&facet.field=colour&facet.field={!ex=colour}%20material&sort=popularity%20desc
>
> specifically "exception":"org.apache.solr.common.SolrException:
> undefined field {!ex=colour} material\n\tat
>
> The schema I'm using was copied from a working solr 1.3 install and as
> mentioned works great with 1.4, except for this issue I'm having
>
> So:
>
> * Do I have to enable this feature somewhere?
> * Is the feature working in the latest release?
> * Is my syntax correct?
> * Do you have to define the tag name somewhere other than in the query?
>
> Any help much appreciated.
>
> Thanks
>
> Gareth
>
> --
> Gareth Rushgrove
>
> Web Geek
> Member WaSP Education Task Force
>
> morethanseven.net
> garethrushgrove.com
>

Reply via email to