How to use AND as opposed to OR as the default query operator.

2010-10-25 Thread Swapnonil Mukherjee
Hi Everybody, I simply want to use AND as the default operator in queries. When a user searches for Jennifer Lopez solr converts this to a Jennifer OR Lopez query. On the other hand I want solr to treat this query as Jennifer AND Lopez and not as Jennifer OR Lopez. In other words I want a

Re: How to use AND as opposed to OR as the default query operator.

2010-10-25 Thread Markus Jelsma
http://wiki.apache.org/solr/SchemaXml#Default_query_parser_operator On Monday 25 October 2010 15:41:50 Swapnonil Mukherjee wrote: Hi Everybody, I simply want to use AND as the default operator in queries. When a user searches for Jennifer Lopez solr converts this to a Jennifer OR Lopez

Re: How to use AND as opposed to OR as the default query operator.

2010-10-25 Thread Pradeep Singh
Which query handler are you using? For a standard query handler you can set q.op per request or set defaultOperator in schema.xml. For a dismax handler you will have to work with min should match. On Mon, Oct 25, 2010 at 6:41 AM, Swapnonil Mukherjee swapnonil.mukher...@gettyimages.com wrote:

Re: How to use AND as opposed to OR as the default query operator.

2010-10-25 Thread Swapnonil Mukherjee
Hi Pradeep, I am using the standard query parser. I made the changes in schema.xml and it works. It is also good to know that this can done on a per query basis as well. Swapnonil Mukherjee On 25-Oct-2010, at 7:48 PM, Pradeep Singh wrote: Which query handler are you using? For a standard

Re: How to use AND as opposed to OR as the default query operator.

2010-10-25 Thread Jonathan Rochkind
However, for user entered queries, I suggest you take a look at dismax, a lot more suitable for user-entered queries than the standard solr-lucene query parsers. Markus Jelsma wrote: http://wiki.apache.org/solr/SchemaXml#Default_query_parser_operator On Monday 25 October 2010 15:41:50