Great ! Thank you very much Chris, it will come handy !
Best regards, Victor 2011/3/1 Chris Hostetter <hossman_luc...@fucit.org> > > : Yes but I want to leave the choice to the user. > : > : He can either search all the terms or just some. > : > : Is there any more flexible solution ? Even if I have to code it by hand ? > > the declaration in the schema dictates the default. > > you can override the default at query time using the "q.op" param (ie: > q.op=AND, q.op=OR) in the request. > > in SolrJ you would just call solrQuery.set("q.op","OR") on your SolrQuery > object. > > -Hoss >