lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikhail Khludnev <mkhlud...@griddynamics.com>
Subject Re: IndexSearcher.search(query, collect)
Date Wed, 15 Jul 2015 19:02:52 GMT
On Wed, Jul 15, 2015 at 12:00 PM, Chetan Vora <chetanvora@gmail.com> 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 modify the standard response structure,
default components logic do everything for you in SolrCloud (at least, you
need to remember shards.df trick, if it still necessary). Otherwise, you
need to implement shards' results merging yourself eg like in
https://github.com/apache/lucene-solr/blob/trunk/solr/core/src/java/org/apache/solr/handler/component/FacetComponent.java#L680



>
> Chetan
>
> On Wed, Jul 15, 2015 at 12:39 PM, Mikhail Khludnev <
> mkhludnev@griddynamics.com> wrote:
>
>>
>>
>> On Wed, Jul 15, 2015 at 10:46 AM, Chetan Vora <chetanvora@gmail.com>
>> 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 SolrCloud collection so
>>> that
>>> in invokes the search/collect implicitly on individual shards of the
>>> collection? If not, how does one do this explicitly?
>>>
>>> I have a usecase that was implemented using custom request handler in
>>> standalone Solr and we're trying to move to SolrCloud.
>>
>>
>> In your  custom request handler do you add any new "nodes" into response?
>> or you just modifies the standard response structure?
>>
>> It is necessary for
>>> us to understand how to do the above so we can use SolrCloud
>>> functionality.
>>>
>>> Thanks and would *really really* appreciate ANY help.
>>>
>>> Regards
>>> CV
>>>
>>
>>
>>
>> --
>> Sincerely yours
>> Mikhail Khludnev
>> Principal Engineer,
>> Grid Dynamics
>>
>> <http://www.griddynamics.com>
>> <mkhludnev@griddynamics.com>
>>
>
>


-- 
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics

<http://www.griddynamics.com>
<mkhludnev@griddynamics.com>

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