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
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
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:
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
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