Re: Search included in *all* fields

2009-04-14 Thread Erik Hatcher
Or in schema.xml you can set the defaultOperator to AND:  
solrQueryParser defaultOperator=AND/ which applies only to the  
Lucene/SolrQueryParser, not dismax.


Erik

On Apr 13, 2009, at 10:49 PM, Ryan McKinley wrote:


what about:
fieldA:value1 AND fieldB:value2

this can also be written as:
+fieldA:value1 +fieldB:value2


On Apr 13, 2009, at 9:53 PM, Johnny X wrote:



I'll start a new thread to make things easier, because I've only  
really got

one problem now.

I've configured my Solr to search on all fields, so it will only  
search for
a specific query in a specific field (e.g. q=Date:October) will  
only

search the 'Date' field, rather than all the others.

The issue is when you build up multiple fields to search on. Only  
one of
those has to match for a result to be returned, rather than all of  
them. Is

there a way to change this?


Cheers!
--
View this message in context: 
http://www.nabble.com/Search-included-in-*all*-fields-tp23031829p23031829.html
Sent from the Solr - User mailing list archive at Nabble.com.





Re: Search included in *all* fields

2009-04-14 Thread Johnny X

Cheers guys, got it working!


Erik Hatcher wrote:
 
 Or in schema.xml you can set the defaultOperator to AND:  
 solrQueryParser defaultOperator=AND/ which applies only to the  
 Lucene/SolrQueryParser, not dismax.
 
   Erik
 
 On Apr 13, 2009, at 10:49 PM, Ryan McKinley wrote:
 
 what about:
 fieldA:value1 AND fieldB:value2

 this can also be written as:
 +fieldA:value1 +fieldB:value2


 On Apr 13, 2009, at 9:53 PM, Johnny X wrote:


 I'll start a new thread to make things easier, because I've only  
 really got
 one problem now.

 I've configured my Solr to search on all fields, so it will only  
 search for
 a specific query in a specific field (e.g. q=Date:October) will  
 only
 search the 'Date' field, rather than all the others.

 The issue is when you build up multiple fields to search on. Only  
 one of
 those has to match for a result to be returned, rather than all of  
 them. Is
 there a way to change this?


 Cheers!
 -- 
 View this message in context:
 http://www.nabble.com/Search-included-in-*all*-fields-tp23031829p23031829.html
 Sent from the Solr - User mailing list archive at Nabble.com.

 
 
 

-- 
View this message in context: 
http://www.nabble.com/Search-included-in-*all*-fields-tp23031829p23037645.html
Sent from the Solr - User mailing list archive at Nabble.com.



Search included in *all* fields

2009-04-13 Thread Johnny X

I'll start a new thread to make things easier, because I've only really got
one problem now.

I've configured my Solr to search on all fields, so it will only search for
a specific query in a specific field (e.g. q=Date:October) will only
search the 'Date' field, rather the all the others.

The issue is when you build up multiple fields to search on. Only one of
those has to match for a result to be returned, rather than all of them. Is
there a way to change this?


Cheers!
-- 
View this message in context: 
http://www.nabble.com/Search-included-in-*all*-fields-tp23031829p23031829.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: Search included in *all* fields

2009-04-13 Thread Ryan McKinley

what about:
 fieldA:value1 AND fieldB:value2

this can also be written as:
 +fieldA:value1 +fieldB:value2


On Apr 13, 2009, at 9:53 PM, Johnny X wrote:



I'll start a new thread to make things easier, because I've only  
really got

one problem now.

I've configured my Solr to search on all fields, so it will only  
search for

a specific query in a specific field (e.g. q=Date:October) will only
search the 'Date' field, rather than all the others.

The issue is when you build up multiple fields to search on. Only  
one of
those has to match for a result to be returned, rather than all of  
them. Is

there a way to change this?


Cheers!
--
View this message in context: 
http://www.nabble.com/Search-included-in-*all*-fields-tp23031829p23031829.html
Sent from the Solr - User mailing list archive at Nabble.com.