Hi,

Thank you for your advice. It helps me to notice that the exception seems to be 
thrown when no data is gathered by the gatherNodes expression (not a very 
explicit error message 😊).
I modified the expression and it works well now.

Thank you,

Aurélien 

-----Message d'origine-----
De : Joel Bernstein [mailto:[email protected]] 
Envoyé : mercredi 20 septembre 2017 04:11
À : [email protected]
Objet : Re: Issue with scoreNodes stream expression

Have you tried running a very simple expression first. For example does this 
run:

random(gettingstarted, q="*:*", fl="id", rows="200")



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

On Tue, Sep 19, 2017 at 4:56 PM, Aurélien MAZOYER < 
[email protected]> wrote:

> Hi,
>
>
>
> I wanted to try the new scoreNodes stream expression that is used to 
> make
> recommendations:
>
> https://cwiki.apache.org/confluence/display/solr/Graph+
> Traversal#GraphTraver
> sal-UsingthescoreNodesFunctiontoMakeaRecommendation
>
> but encountered some issue with it.
>
>
>
> The following steps can easily reproduce the problem:
>
> I started Solr (6.6.1) in cloud mode :
>
> solr -e cloud -noprompt
>
> then run the following command in exampledocs to index the sample data :
>
> java -Dc=gettingstarted -jar post.jar *.xml
>
> and to finish copy/paste the following expression in the stream tab:
>
> scoreNodes(top(n=25,
>
>                           sort="count(*) desc",
>
>                           nodes(gettingstarted,
>
>                                      random(gettingstarted, q="*:*", 
> fl="id", rows="200"),
>
>                                      walk="id->id",
>
>                                      gather="id",
>
>                                      count(*))))
>
> (yes I now that my stream expression does nothing usefull :-P).
>
> Anyway, I got the following exception when I run the query:
>
> "EXCEPTION": "org.apache.solr.client.solrj.SolrServerException: No 
> collection param specified on request and no default collection has 
> been set.",
>
> Any idea of what i did wrong?
>
>
>
> Thank you,
>
>
>
> Regards,
>
>
>
> Aurélien
>
>
>
>
>
>
>
>

Reply via email to