What is the fieldType of your Colour field?  You must ensure that the
particular field that you are using to store Colour information is
configured to use solr.SynonymFilterFactory in your schema.xml configuration
file.

cheers,
Piete


On 07/08/07, beejenny <[EMAIL PROTECTED]> wrote:
>
>
> Hello,
>
> I am trying to configure some synonyms against an index of catalog
> products
> and I can't seem to get it right.
>
> We are indexing a field called Colour which contains the colour of a
> product.  Some of the values for colour are a little obscure and we'd like
> to map them to more common colours.
>
> For example
> Straw, Melon, Buttermilk, Mustard => Yellow
> Navy, Ocean, cobalt => Blue
>
> When I search for q=Colour:Yellow I would like to bring back all the
> documents with colour of yellow, Straw, Melon, Buttermilk and Mustard.
>
> Effectively
> q=Colour:Yellow+Colour:Straw+Colour:Melon+Colour:Buttermilk+Colour:Mustard
>
> But no matter what I do I only get back products with "Yellow" in the
> colour
> field.  Is using synonyms the best way to try to achieve this?
>
> Any pointers would be greatly appreciated.
>
> Jenny
> --
> View this message in context:
> http://www.nabble.com/Configuring-Synonyms-tf4229295.html#a12031632
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>

Reply via email to