Re: Filter query with special character using SolrJ client

2010-03-29 Thread Indika Tantrigoda
Thank you very much for the explanation. Regards, Indika On 29 March 2010 22:28, Chris Hostetter wrote: > > : It works, thanks. Just implemented the code...:):):) > : > : Could you explain what "{!field f=yourStringField}Cameras & Photos" does. > > {!field} says that the string should be parsed

Re: Filter query with special character using SolrJ client

2010-03-29 Thread Chris Hostetter
: It works, thanks. Just implemented the code...:):):) : : Could you explain what "{!field f=yourStringField}Cameras & Photos" does. {!field} says that the string should be parsed using the FIeldQParser. the FieldQParser takes an 'f' local param telling it what field you want to use, and the

Re: Filter query with special character using SolrJ client

2010-03-29 Thread Indika Tantrigoda
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 wrote: > > : Since the names of the string fields are not predefined I might have to > : find a method to do t

Re: Filter query with special character using SolrJ client

2010-03-29 Thread Chris Hostetter
: 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.addFilterQu

Re: Filter query with special character using SolrJ client

2010-03-28 Thread Indika Tantrigoda
Thanks for the info. I'll have a try and see how the results are. Since the names of the string fields are not predefined I might have to find a method to do this automatically. I'll try a few more workarounds and see what the results turn out to be. Regards, Indika On 29 March 2010 06:57, Ahmet

Re: Filter query with special character using SolrJ client

2010-03-28 Thread Ahmet Arslan
> I am trying to get filter querying to work on search. > When the filter query contains no special character or is a > single word the > filter query parameter returns the result as expected. > However when I run filter query where special characters > are present no > results are results. > > e

Filter query with special character using SolrJ client

2010-03-28 Thread Indika Tantrigoda
Hello, I am trying to get filter querying to work on search. When the filter query contains no special character or is a single word the filter query parameter returns the result as expected. However when I run filter query where special characters are present no results are results. e.g Cameras