It works, thanks. Just implemented the code...:):):)

Could you explain what "{!field f=yourStringField}Cameras & Photos" does.

Regards,
Indika


On 29 March 2010 21:55, Chris Hostetter <hossman_luc...@fucit.org> wrote:

>
> : Since the names of the string fields are not predefined I might have to
> : find a method to do this automatically.
>
> if the fields are strings, and you are only looking for "exact" matches
> (ie: you don't need any special query parser syntax) use the "field"
> QParser....
>
> : > SolrQuery.addFilterQuery("yourStringField:Cameras\\ \\&\\ Photos")
>
> solrQuery.addFilterQuery("{!field f=yourStringField}Cameras & Photos")
>
>
> -Hoss
>
>

Reply via email to