In the schema conf / schema.xml definition file for the schema, you can specify the default operator, make sure it is OR:
<solrQueryParser defaultOperator="OR"/>
You can then separate the words with spaces in your query, and this will result in the words OR:
solrQuery.setQuery("myField:(id1 id2 id3)")
source
share