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