Is it possible to create hierarchies of query operator objects and pass that to solr instead of constructing a long string query?
This would enable client applications to construct complex queries and have them verified by the compiler, example (psuedo code): q = BooleanQuery( minNumberShouldMatch => 1, booleanClauses => ClauseList( MustMatch(DisjunctionMaxQuery( PhraseQuery("features","apache solr", 2), PhraseQuery("name","apache solr", 3) ), ShouldMatch(DisjunctionMaxQuery( TermQuery("features","search", 2), TermQuery("name","search", 3) ), ShouldMatch(DisjunctionMaxQuery( TermQuery("features","server", 2), TermQuery("name","server", 3) )); solr.search( q ); However, i cannot see that the Solr api supports this. Any thoughts? Thanks, Geir