Dear Solr Comunity,

Recently I've been working with the 'let()' expression.
And I got in a sort of trouble, when I was trying combining it with the 
different streaming expressions,
as well as trying to re-assign variables.

As an example:
let(
  a=search(techproducts, q="cat:electronics", fl="id, manu, price", sort="id 
asc"),
  b=search(techproducts, q="cat:electronics", fl="id, popularity, _version_", 
sort="id asc"),
  c=innerJoin(a, b, on=id)
)

In case with re-assigning the variables:
let(
  a=search(techproducts, q="cat:electronics", fl="id, manu, price", sort="id 
asc"),
  b=a,
  c=innerJoin(a, b, on=id)
)

According to documentation (Solr v8.1 the version I use) its possible to store 
any kind values with 'let()'
function but it seems the usage of such a function is strictly limited for 
specific mathematical operations.

I was wondering if there is possible way to reduce the verbosity and 
(potentially)
increase the efficiency of the streaming expression's performance, while 
dealing and constructing complex
combinations of different streaming expressions.

I assume the 'let()' doesn't suited for such purposes, but perhaps there is an 
alternative way to do such a thing.

Regards,
Viktors

Reply via email to