Hi,
Set your default operator to OR i.e.

<solrQueryParser defaultOperator="OR"/> in schema.xml

Also keep your fieldType=text i.e.

<field name="myfield" type="text" indexed="true" stored="true"/>

As you would want whitespace tokenization and try your query with () i.e.

/select/?q=myfields:(a b)&version=2.2&start=0&rows=2&indent=on

This hopefully should solve your problem.

--
View this message in context: 
http://lucene.472066.n3.nabble.com/A-simple-query-tp3395465p3395735.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to