Re: IndexSearcher.search(query, collect)

2015-07-15 Thread Mikhail Khludnev
On Wed, Jul 15, 2015 at 12:00 PM, Chetan Vora wrote: > Mikhail > > We do add new nodes with our custom results in some cases... just curious- > does that preclude us from doing what we're trying to do above? FWIW, we > can avoid the custom nodes if we had to. > If your custom component doesn't m

Re: IndexSearcher.search(query, collect)

2015-07-15 Thread Erick Erickson
bq: does that preclude us from doing what we're trying to do above? Not at all. You just have to process each response and combine them perhaps. In this case, you might be able to get away with just specifying the shards parameter to the query and having the app layer deal with the responses. At

Re: IndexSearcher.search(query, collect)

2015-07-15 Thread Chetan Vora
Mikhail We do add new nodes with our custom results in some cases... just curious- does that preclude us from doing what we're trying to do above? FWIW, we can avoid the custom nodes if we had to. Chetan On Wed, Jul 15, 2015 at 12:39 PM, Mikhail Khludnev < mkhlud...@griddynamics.com> wrote: >

Re: IndexSearcher.search(query, collect)

2015-07-15 Thread Mikhail Khludnev
On Wed, Jul 15, 2015 at 10:46 AM, Chetan Vora wrote: > Hi all > > I asked a related question before but couldn't get any response (see > SolrQueryRequest in SolrCloud vs Standalone Solr), asking it differently > here. > > Is there a way to invoke > > IndexSearcher.search(Query, Collector) over a

Re: IndexSearcher.search(query, collect)

2015-07-15 Thread Chetan Vora
Erick Thanks for your response and for the pointers! This will be a good starting point; I will go through these. The good news is in our usecase, we don't really care about the two passes. In fact, our results are ConstantScore so we only need to aggregrate (i/e sum) the results from each shard.

Re: IndexSearcher.search(query, collect)

2015-07-15 Thread Erick Erickson
bq: Is there a way to invoke IndexSearcher.search(Query, Collector) Problem is that this question doesn't make a lot of sense to me. IndexSearcher is, by definition, local to a single Lucene instance. Distributed requests are a whole different beast. If you're going to try to use custom request ha

IndexSearcher.search(query, collect)

2015-07-15 Thread Chetan Vora
Hi all I asked a related question before but couldn't get any response (see SolrQueryRequest in SolrCloud vs Standalone Solr), asking it differently here. Is there a way to invoke IndexSearcher.search(Query, Collector) over a SolrCloud collection so that in invokes the search/collect implicitly