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 "Lewin Joy (TMS)" <le...@toyota.com> on 2017/07/05 18:40:38 UTC

solr alias not working on streaming query search

** PROTECTED 関係者外秘

Have anyone faced a similar issue?

I have a collection named “solr_test”. I created an alias to it as “solr_alias”.
This alias works well when I do a simple search:
http://localhost:8983/solr/solr_alias/select?indent=on&q=*:*&wt=json

But, this will not work when used in a streaming expression:

http://localhost:8983/solr/solr_alias/stream?expr=search(solr_alias, q=*:*, fl="p_PrimaryKey, p_name",     qt="/select", sort="p_name asc")

This gives me an error:
"EXCEPTION": "java.lang.Exception: Collection not found:solr_alias"

The same streaming query works when I use the actual collection name: “solr_test”


Is this a limitation for aliases in solr? Or am I doing something wrong?

Thanks,
Lewin

RE: solr alias not working on streaming query search

Posted by "Lewin Joy (TMS)" <le...@toyota.com>.
Oh, Cool. Thank you, Joel.
I am using Solr 6.1 where I am still facing the issue.

Anyway, nice to know that this is fixed from versions 6.4 and ahead.

Thanks,
Lewin

-----Original Message-----
From: Joel Bernstein [mailto:joelsolr@gmail.com] 
Sent: Wednesday, July 05, 2017 12:58 PM
To: solr-user@lucene.apache.org
Subject: Re: solr alias not working on streaming query search

This should be fixed in Solr 6.4:
https://urldefense.proofpoint.com/v2/url?u=https-3A__issues.apache.org_jira_browse_SOLR-2D9077&d=DwIFaQ&c=DDPRwrN9uYSNUDpKqPeD1g&r=WMeiuwk_Qf7aOundlWmtZMlairjO8ZQxQpAndx7JD6A&m=tGSZ2JduXxWkeXFuCKxt2jYMgYKiEntyhgBbjHW6XwI&s=IGQ1h4dqxL7S8d4WgzkSKNqavYGIHmfBIbdPQzww5I0&e= 

Joel Bernstein
https://urldefense.proofpoint.com/v2/url?u=http-3A__joelsolr.blogspot.com_&d=DwIFaQ&c=DDPRwrN9uYSNUDpKqPeD1g&r=WMeiuwk_Qf7aOundlWmtZMlairjO8ZQxQpAndx7JD6A&m=tGSZ2JduXxWkeXFuCKxt2jYMgYKiEntyhgBbjHW6XwI&s=jhf2UbqYrF4pRtSVIJlKlMV7U1hPADnK38TAiBf6d5g&e= 

On Wed, Jul 5, 2017 at 2:40 PM, Lewin Joy (TMS) <le...@toyota.com>
wrote:

> ** PROTECTED 関係者外秘
>
> Have anyone faced a similar issue?
>
> I have a collection named “solr_test”. I created an alias to it as
> “solr_alias”.
> This alias works well when I do a simple search:
> https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8983_solr_solr-5Falias_select-3Findent-3Don-26q-3D-2A-3A-2A-26wt-3Djson&d=DwIFaQ&c=DDPRwrN9uYSNUDpKqPeD1g&r=WMeiuwk_Qf7aOundlWmtZMlairjO8ZQxQpAndx7JD6A&m=tGSZ2JduXxWkeXFuCKxt2jYMgYKiEntyhgBbjHW6XwI&s=OL8uIyg-XGxFfLtzOegcZPQcAYFKZy8bBh0UyyEi4jk&e= 
>
> But, this will not work when used in a streaming expression:
>
> https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8983_solr_solr-5Falias_stream-3Fexpr-3Dsearch-28solr-5Falias&d=DwIFaQ&c=DDPRwrN9uYSNUDpKqPeD1g&r=WMeiuwk_Qf7aOundlWmtZMlairjO8ZQxQpAndx7JD6A&m=tGSZ2JduXxWkeXFuCKxt2jYMgYKiEntyhgBbjHW6XwI&s=H0NTSF8Tqb1xMNQbVtk76Yac_FlfhPGekd9BYkXksyQ&e= ,
> q=*:*, fl="p_PrimaryKey, p_name",     qt="/select", sort="p_name asc")
>
> This gives me an error:
> "EXCEPTION": "java.lang.Exception: Collection not found:solr_alias"
>
> The same streaming query works when I use the actual collection name:
> “solr_test”
>
>
> Is this a limitation for aliases in solr? Or am I doing something wrong?
>
> Thanks,
> Lewin
>

Re: solr alias not working on streaming query search

Posted by Joel Bernstein <jo...@gmail.com>.
This should be fixed in Solr 6.4:
https://issues.apache.org/jira/browse/SOLR-9077

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

On Wed, Jul 5, 2017 at 2:40 PM, Lewin Joy (TMS) <le...@toyota.com>
wrote:

> ** PROTECTED 関係者外秘
>
> Have anyone faced a similar issue?
>
> I have a collection named “solr_test”. I created an alias to it as
> “solr_alias”.
> This alias works well when I do a simple search:
> http://localhost:8983/solr/solr_alias/select?indent=on&q=*:*&wt=json
>
> But, this will not work when used in a streaming expression:
>
> http://localhost:8983/solr/solr_alias/stream?expr=search(solr_alias,
> q=*:*, fl="p_PrimaryKey, p_name",     qt="/select", sort="p_name asc")
>
> This gives me an error:
> "EXCEPTION": "java.lang.Exception: Collection not found:solr_alias"
>
> The same streaming query works when I use the actual collection name:
> “solr_test”
>
>
> Is this a limitation for aliases in solr? Or am I doing something wrong?
>
> Thanks,
> Lewin
>