> For. e. g. if i search with below url, then it return
> results me as 0 rows ,
> where as such record exist.
> 
> http://localhost:8080/solr/core0/select?q=myTextFeild:politics
> programme AND
> myuniquekey:193834
> 
> but if i modify my search with any of below mentioned search
> query it works
> properly.
> 
> http://localhost:8080/solr/core0/select?q=myuniquekey:193834
> AND
> myTextFeild:politics programme
> 
> OR 
> 
> http://localhost:8080/solr/core0/select?q=myTextFeild:politics
> programme&fq=myuniquekey:193834
> 
> Now i don't know which would be better option to apply ,
> should i apply
> unique key on query or in filter query


myTextFeild:politics programme is parsed as follows :

myTextFeild:politics defaultField:programme

You should use parenthesis : 
q=myTextFeild:(politics programme) AND myuniquekey:193834

Filter queries are cached, if you will be re-using same uniqueKey it is better 
to use fq.

Reply via email to