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 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
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 default AND behavior in phrase queries instead of
OR.

I have seen in this presentation
http://www.slideshare.net/pittaya/using-apache-solr on Slide number 52
that this OR behavior is configurable.

Could you please tell me where this configuration is located? I could not
locate it in schema.xml.

Swapnonil Mukherjee
+91-40092712
+91-9007131999

Reply via email to