lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven White <swhite4...@gmail.com>
Subject SolrQuery setting the boolean operator to use
Date Tue, 09 Jul 2019 22:52:15 GMT
Hi everyone,

In this code sample that's part of my overall code, how do I tell Solr
dynamically / programmatically to use AND or OR as the default operator?

SolrQuery query = new SolrQuery(queryString);
query.setRequestHandler("/select_test");

response = solrClient.query(query);
SolrDocumentList documents = response.getResults();
long count = documents.getNumFound();

Thanks

Steven

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message