Re: how to search against multiple attributes in the index

2009-11-13 Thread javaxmlsoapdev
great. thanks. that was helpful Avlesh Singh wrote: > >> >> you can do it using >> solrQuery.setFilterQueries() and build AND queries of multiple >> parameters. >> > Nope. You would need to read more - > http://wiki.apache.org/solr/FilterQueryGuidance > > For your impatience, here's a quick sta

Re: how to search against multiple attributes in the index

2009-11-13 Thread Avlesh Singh
> > you can do it using > solrQuery.setFilterQueries() and build AND queries of multiple parameters. > Nope. You would need to read more - http://wiki.apache.org/solr/FilterQueryGuidance For your impatience, here's a quick starter - #and between two fields solrQuery.setQuery("+field1:foo +field2:

Re: how to search against multiple attributes in the index

2009-11-13 Thread javaxmlsoapdev
I think I found the answer. needed to read more API documentation :-) you can do it using solrQuery.setFilterQueries() and build AND queries of multiple parameters. Avlesh Singh wrote: > > For a starting point, this might be a good read - > http://www.lucidimagination.com/search/document/f4d9

Re: how to search against multiple attributes in the index

2009-11-13 Thread Avlesh Singh
For a starting point, this might be a good read - http://www.lucidimagination.com/search/document/f4d91628ced293bf/lucene_query_to_solr_query Cheers Avlesh On Fri, Nov 13, 2009 at 10:02 PM, javaxmlsoapdev wrote: > > I already did dive in before. I am using solrj API and SolrQuery object to > b

Re: how to search against multiple attributes in the index

2009-11-13 Thread javaxmlsoapdev
I already did dive in before. I am using solrj API and SolrQuery object to build query. but its not clear/written how to build booleanQuery ANDing bunch of different attributes in the index. Any samples please? Avlesh Singh wrote: > > Dive in - http://wiki.apache.org/solr/Solrj > > Cheers > Av

Re: how to search against multiple attributes in the index

2009-11-13 Thread Avlesh Singh
Dive in - http://wiki.apache.org/solr/Solrj Cheers Avlesh On Fri, Nov 13, 2009 at 9:39 PM, javaxmlsoapdev wrote: > > I want to build AND search query against field1 AND field2 etc. Both these > fields are stored in an index. I am migrating lucene code to Solr. > Following > is my existing lucen