Thanks for the quick replies guys. Afraid that didn't work.

2009/9/8 gwk <g...@eyefi.nl>:
>
> Try removing the space between de closing bracket } and the field name, I
> think that should work.
>

I tried:

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}material&sort=popularity%20desc

I'd actually tried this first and added the space to see if that was
needed, then missed it when I pasted in the URL from the browser.

Looking at the docs I thought this would be the correct syntax, but I
still get the same exception:

"exception":"org.apache.solr.common.SolrException: undefined field
{!ex=colour}material\n\tat

Thanks

Gareth

> Regards,
>
> gwk
>
>
> gareth rushgrove 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