Re: Streaming expressions, what is the effect of collection name inthe request url

2021-01-26 Thread Joel Bernstein
I have never tried this and didn't even know that you could have multiple
collections in the URL. So, I'm really not sure what the behavior will be.


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


On Tue, Jan 26, 2021 at 1:19 PM ufuk yılmaz 
wrote:

> Does it have any ill side effects when url has multiple collections? Like
> can it cause expression to compile and run on many nodes at once?
>
> Our scripts generate the url, when we are doing a regular searching on
> multiple collections, that url is necessary but if it’s ill for streaming
> ones, I should change them.
>
> Many thanks  Joel
>
> PS: how are tomato thiefs doing? 
>
> Sent from Mail for Windows 10
>
> From: Joel Bernstein
> Sent: 26 January 2021 21:14
> To: solr-user@lucene.apache.org
> Subject: Re: Streaming expressions, what is the effect of collection name
> inthe request url
>
> The URL path should be for one collection. This will be where the
> collection is compiled and run. It has no effect on what is actually being
> searched. That is specified in the expression themselves.
>
>
> Joel Bernstein
> http://joelsolr.blogspot.com/
>
>
> On Wed, Jan 20, 2021 at 1:34 PM ufuk yılmaz 
> wrote:
>
> > Do collection names in request url affect how the query works in any way?
> >
> > A streaming expression is sent to
> http://mySolrHost/solr/col1,col2/stream
> > (notice multiple collections in url)
> >
> > Col1 has 2 shards, each have 3 replicas.
> > * Shard1 has replicas on nodes A, B, C
> > * Shard2 has replicas on D,E,F
> >
> > Col2 has 2 shards, each have 3 replicas. Its shards have the same
> > configuration as Col1.
> >
> >
> > Lets say we have a simple search expression:
> > search(
> > "colA,colB",
> > q="*:*",
> > qt="/export",
> > fl="fl1,fl2",
> > sort="id asc"
> > )
> >
> > Collection names in search expression denotes which collections should be
> > searched, so we can’t change them. But what would change if we sent the
> > query to
> > http://mySolrHost/solr/someOtherCollection/stream
> >
> > and someOtherCollection has 1 shard and 6 replicas in nodes A,B,C,D,E,F ?
> >
> > I read about worker collections a bit, but as long as I don’t explicitly
> > use parallel streams, what is the difference?
> >
> >
> >
> > Sent from Mail for Windows 10
> >
> >
>
>


RE: Streaming expressions, what is the effect of collection name inthe request url

2021-01-26 Thread ufuk yılmaz
Does it have any ill side effects when url has multiple collections? Like can 
it cause expression to compile and run on many nodes at once?

Our scripts generate the url, when we are doing a regular searching on multiple 
collections, that url is necessary but if it’s ill for streaming ones, I should 
change them.

Many thanks  Joel

PS: how are tomato thiefs doing? 

Sent from Mail for Windows 10

From: Joel Bernstein
Sent: 26 January 2021 21:14
To: solr-user@lucene.apache.org
Subject: Re: Streaming expressions, what is the effect of collection name inthe 
request url

The URL path should be for one collection. This will be where the
collection is compiled and run. It has no effect on what is actually being
searched. That is specified in the expression themselves.


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


On Wed, Jan 20, 2021 at 1:34 PM ufuk yılmaz 
wrote:

> Do collection names in request url affect how the query works in any way?
>
> A streaming expression is sent to http://mySolrHost/solr/col1,col2/stream
> (notice multiple collections in url)
>
> Col1 has 2 shards, each have 3 replicas.
> * Shard1 has replicas on nodes A, B, C
> * Shard2 has replicas on D,E,F
>
> Col2 has 2 shards, each have 3 replicas. Its shards have the same
> configuration as Col1.
>
>
> Lets say we have a simple search expression:
> search(
> "colA,colB",
> q="*:*",
> qt="/export",
> fl="fl1,fl2",
> sort="id asc"
> )
>
> Collection names in search expression denotes which collections should be
> searched, so we can’t change them. But what would change if we sent the
> query to
> http://mySolrHost/solr/someOtherCollection/stream
>
> and someOtherCollection has 1 shard and 6 replicas in nodes A,B,C,D,E,F ?
>
> I read about worker collections a bit, but as long as I don’t explicitly
> use parallel streams, what is the difference?
>
>
>
> Sent from Mail for Windows 10
>
>