I am not sure if this went to Mailing List before.. hence forwarding again

Hi All,

I want to search for a document containing "string to search", price between
100 to 200 and weight 10-20.

SolrQuery query = new SolrQuery();
query.setQuery( "DOC_CONTENT: string to search");

query.setFilterQueries("PRICE:[100 TO 200]");
query.setFilterQueries("WEIGHT:[10 TO 20]");

QueryResponse response = server.query(query);

The DOC_CONTENT contains the content extracted from the file uploaded by the
user, extracted using TIKA.

Is the above approach correct ?

Reply via email to