Hi there,

This is about undocumented restrictions about using streaming expressions
(in the sense that I haven't found the right documentation).

** Setup
I just followed the documentation to start SolrCloud on my local machine,
and I made it so it would replace the previous standalone server I have
been using for the last several years. Had some trouble understanding how
to use my current solrconfig and schema, but I got it working and I could
index all the documents without any trouble.
After indexing both collections, the Admin > Cloud > Nodes reports the
expected number of documents in each.

_Before I go into too many details, it may be useful to include a warning
in the chapter called "the well-configured Solr instance" so that new users
are aware that streaming expressions won't work in standalone mode. I know
it is explained elsewhere, but that page would be a good fit for such a
warning: SolrCloud is not only about scaling, as the page would suggest._

** The issue
Now, about my question:
I went the SolrCloud route because I wanted to try streaming expressions
and eventually the classifiers.
To that end, I loaded the web admin in Firefox, went to the right
collection, then Stream, and pasted the adapted examples.

I have been trying the query examples from this page:
https://lucene.apache.org/solr/guide/7_5/stream-source-reference.html

A couple things worth mentioning about the admin UI:

   - the URL that is presented doesn't work:
      - 
http://127.0.0.1:8983products/stream?explain=true&expr=search(products,q=*:*,fl="ref,createdAt",
      sort="createdAt desc",qt="catalogFr")
      - it is missing part of the path, in my case it should start with
      http://127.0.0.1:8983/solr/products/stream
   - that box's UI could be improved by making the URL clickable or at
   least selectable
   - the output misses a lot of metadata, as I can't see much of the
   "explanation" that is available when requesting the actual URL


Most notably, I was only able to get a response from search(),
significantTerms() and stats(). The other sources failed with an exception.

Here is a log from features() which ends with a
java.util.concurrent.ExecutionException:
https://paste.linux.community/view/6676fc3c

It seems that the collection is looking for the 192.168.56.1 IP and I have
no idea why it would switch to another network (that Solr may not be bound
to) or how to change this.
At setup, I only used "localhost" so I would expect all URL to reflect
this, not even 127.0.0.1.

Here is another, this one about timeseries() and ends with a
java.lang.NullPointerException:
https://paste.linux.community/view/f62bebf6


Are there configuration considerations I haven't accounted for, like maybe
field attributes that should be present and that are documented elsewhere?

Best regards,

Reply via email to