You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Ufuk YILMAZ <uy...@vivaldi.net.INVALID> on 2021/12/28 10:11:07 UTC

What happens when a streaming expression is sent to an alias

When you send an expression to an alias named "myAlias" pointing to N 
number of collections, each having M number of replicas, how does it 
work? Is the same expression executed in all of the NxM machines at the 
same time? Or a random node is selected from the NxM replica's nodes? Or 
something else?

curl -L -X POST 'http://node1:8983/solr/myAlias/stream' -H 
'Content-Type: application/x-www-form-urlencoded' --data-urlencode 
'expr=echo(1)'

Re: What happens when a streaming expression is sent to an alias

Posted by Joel Bernstein <jo...@gmail.com>.
Streaming expressions are alias aware inside of the stream source only. If
you send a streaming expression to an alias it will likely end up on one of
the stream handlers within that alias, but will have no effect on what the
stream sources actually do, that's controlled by the collection parameter
that is passed to the stream.


Joel Bernstein
http://joelsolr.blogspot.com/


On Tue, Dec 28, 2021 at 5:11 AM Ufuk YILMAZ <uy...@vivaldi.net.invalid>
wrote:

> When you send an expression to an alias named "myAlias" pointing to N
> number of collections, each having M number of replicas, how does it
> work? Is the same expression executed in all of the NxM machines at the
> same time? Or a random node is selected from the NxM replica's nodes? Or
> something else?
>
> curl -L -X POST 'http://node1:8983/solr/myAlias/stream' -H
> 'Content-Type: application/x-www-form-urlencoded' --data-urlencode
> 'expr=echo(1)'
>