You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by gnandre <ar...@gmail.com> on 2020/08/06 23:59:34 UTC
Solr 8.5.2 - Solr shards param does not work without localhost
Hi,
In Solr 6.3 I was able to use following shards query:
http://my.domain.com/solr/core/select?q=*:*&start=0&rows=10&shards=
my.domain.com /solr/another_core&fl=*
Ir does not work in Solr 8.5.2 anymore unless I pass localhost instead of
my domain in shards param value as follows:
http://my.domain.com/solr/core/select?q=*:*&start=0&rows=10&shards=
localhost:8983 /solr/another_core&fl=*
This is a master-slave setup and not a cloud setup.
Re: Solr 8.5.2 - Solr shards param does not work without localhost
Posted by Shawn Heisey <ap...@elyograg.org>.
On 8/6/2020 6:03 PM, gnandre wrote:
> Please ignore the space between. I have updated the calls by removing space
> below:
>
> http://my.domain.com/solr/core/select?q=*:*&start=0&rows=10&shards=
> my.domain.com/solr/another_core&fl=*
>
> http://my.domain.com/solr/core/select?q=*:*&start=0&rows=10&shards=
> localhost:8983/solr/another_core&fl=*
Assuming that these are the actual URLs (copy/paste) and not something
you've typed up as an example... one of them has port 8983 and the
other has no port, which would mean it's using port 80.
That looks like it could be a problem. It takes special effort to get
Solr listening on port 80.
Thanks,
Shawn
Re: Solr 8.5.2 - Solr shards param does not work without localhost
Posted by gnandre <ar...@gmail.com>.
Please ignore the space between. I have updated the calls by removing space
below:
http://my.domain.com/solr/core/select?q=*:*&start=0&rows=10&shards=
my.domain.com/solr/another_core&fl=*
http://my.domain.com/solr/core/select?q=*:*&start=0&rows=10&shards=
localhost:8983/solr/another_core&fl=*
On Thu, Aug 6, 2020 at 7:59 PM gnandre <ar...@gmail.com> wrote:
> Hi,
>
> In Solr 6.3 I was able to use following shards query:
>
> http://my.domain.com/solr/core/select?q=*:*&start=0&rows=10&shards=
> my.domain.com /solr/another_core&fl=*
>
> Ir does not work in Solr 8.5.2 anymore unless I pass localhost instead of
> my domain in shards param value as follows:
> http://my.domain.com/solr/core/select?q=*:*&start=0&rows=10&shards=
> localhost:8983 /solr/another_core&fl=*
>
> This is a master-slave setup and not a cloud setup.
>
Re: Solr 8.5.2 - Solr shards param does not work without localhost
Posted by Shawn Heisey <ap...@elyograg.org>.
On 8/6/2020 5:59 PM, gnandre wrote:
> http://my.domain.com/solr/core/select?q=*:*&start=0&rows=10&shards=
> my.domain.com /solr/another_core&fl=*
>
> Ir does not work in Solr 8.5.2 anymore unless I pass localhost instead of
> my domain in shards param value as follows:
> http://my.domain.com/solr/core/select?q=*:*&start=0&rows=10&shards=
> localhost:8983 /solr/another_core&fl=*
>
> This is a master-slave setup and not a cloud setup.
I've set up sharded indexes without SolrCloud before, and I've never
used "localhost". Always used FQDN.
When you try it using the name, what shows up in your solr logfile? I
would assume you're getting some kind of error. Can you share it? It
is likely to be many lines long.
Thanks,
Shawn