Hi,

I found the why it is returning irrelevant documents. I am encoding my query
string with UTF-8 and appending to url as follows so it fails.
This is the query string => art_id:queryText&start=0&rows=10&sort=score desc
encoded url :
http://localhost:8983/solr/TeamSite/select?q=art_id%3A183702815%26start%3D0%
26rows%3D10%26sort%3Dscore+desc 

If I access the URL directly without encoding and it is working fine. But
this will not work through application. 
I need to encode the url otherwise it will throw Illegal URI exception.

I tried ISO encode. but no luck.

Anybody has any idea. How to resolve this issue. Any help will be
appriciated. Thanks in advance.


Thanks,
Radha.C

-----Original Message-----
From: Radha C. [mailto:cra...@ceiindia.com] 
Sent: Friday, May 15, 2009 8:57 PM
To: solr-user@lucene.apache.org
Subject: irrelevant search results

Hello List,
 
I am having the below query
 
art_id:queryText&start=0&rows=10&sort=score desc and this should not yield
any result because art_id  contains numbers.
 
But when I execute this search , it returns more than 100 documents. the
art_id field is String in schema.xml
 
Can anyone tell me how it works. What is thw wrong in the above query.
 
Thanks,
Radha.C

Reply via email to