Hi Ryan,

  Thanks for the reply. I tried with the given query too. But i didnt get
the correct result.

  Eg :
http://localhost:8085/solr/select/?q=ram&q=FSID:8.2723%208.2723&RES_TYPE:1896&fl=ID

  Here FSID, RES_TYPE are field names. I came to know that it is checking
for only the first condition and displaying the records according to
"q=ram". Its not checking for the whole query.
  
 Eg :
http://localhost:8085/solr/select/?q=FSID:8.2723%208.2723&q=ram&RES_TYPE:1896&fl=ID

 If i use this, it displaying the records according to FSID field and not
checking the second condition.

 Any help, appreciated!

 Thanks in advance.

with Regards,
V.Nithya.




ryan mckinley wrote:
> 
> nithyavembu wrote:
>> Hi Otis Gospodnetic,
>> 
>>   Thanks for the reply. I tried with this URL, its working but its not
>> checking the condition. Its showing all the records if i use this URL. Is
>> there any solution????
>> 
> 
> I'm not sure about the order of operations, but try:
> 
>    +FID:8 +RES_TYPE:0 RES_TYPE:1 +ALL:sun
> 
> As a solr URL:
> 
> http://localhost:8085/solr/select?q=%2BFID:8+%2BRES_TYPE:0+RES_TYPE:1+%2BALL:sun
> 
> 
> 
>>   Thanks in advance.
>> 
>> Regards,
>> V.Nithya.
>> 
>> 
>> 
>> Otis Gospodnetic wrote:
>>> Have you tried this:
>>>
>>> http://localhost:8085/solr/select?q=FID:8+AND+RES+TYPE:0+OR+RES+TYPE:1+AND+ALL:sun&fl=ALL
>>> The column may need to be URL-encoded.
>>>
>>> Otis
>>>
>>> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
>>> Simpy -- http://www.simpy.com/  -  Tag  -  Search  -  Share
>>>
>>> ----- Original Message ----
>>> From: nithyavembu <[EMAIL PROTECTED]>
>>> To: solr-user@lucene.apache.org
>>> Sent: Tuesday, July 24, 2007 8:00:36 PM
>>> Subject: Multiple field search with different values..
>>>
>>>
>>> Hi All,
>>>
>>>    I need to know how to form a query using multiple fields which
>>> contains
>>> same values?
>>>    I worked with single field and it working well. 
>>>         For eg : http://localhost:8085/solr/select?q=sun*&fl=ALL
>>>    when i worked with the above http request it returns all data
>>> starting
>>> with the word "sun" in the specified  field "ALL".
>>>   
>>>   My requirement is
>>>       (FID:8 AND RES_TYPE:0 OR RES_TYPE:1 AND ALL: sun) - I used this
>>> format
>>> in lucene. Here FID, RES_TYPE and ALL are field names.
>>>   But i want to know how can i give this same query in http request with
>>> same field and different values using OR operator?
>>>
>>>   Thanks.
>>>
>>> -Nithya.V.
>>>     
>>> -- 
>>> View this message in context:
>>> http://www.nabble.com/Multiple-field-search-with-different-values..-tf4137672.html#a11768630
>>> Sent from the Solr - User mailing list archive at Nabble.com.
>>>
>>>
>>>
>>>
>>>
>>>
>> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Multiple-field-search-with-different-values..-tf4137672.html#a11826450
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to