You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Abdullah Shaikh <ab...@viithiisys.com> on 2009/09/03 14:26:53 UTC

Indexing docs using TIKA

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 ?