Re: Streaming expr as LTR feature

2023-06-01 Thread Joel Bernstein
There currently is not a way to inline a streaming expression into a traditional Solr search. Part of the reason why is that they have different performance and design goals. A standard search is designed to scale to a high qps with sub-second performance. The design of Solr's traditional search s

Re: Streaming expr as LTR feature

2023-06-01 Thread rajani m
Thank you for links to the docs, they were super helpful and the expression syntax also works perfectly. Appreciate it. Just another question inline to the streaming api. Is it possible to invoke the stream expression via solr local param standard query syntax such as {!stream expr=select()}. Any s

Re: Streaming expr as LTR feature

2023-05-31 Thread Joel Bernstein
The select function is documented here: https://solr.apache.org/guide/solr/latest/query-guide/transform.html Joel Bernstein http://joelsolr.blogspot.com/ On Wed, May 31, 2023 at 1:51 PM Joel Bernstein wrote: > The array function doesn't operate in the way its being used here. Here > are the d

Re: Streaming expr as LTR feature

2023-05-31 Thread Joel Bernstein
The array function doesn't operate in the way its being used here. Here are the docs on arrays: https://solr.apache.org/guide/solr/latest/query-guide/vector-math.html#arrays Using a multi-valued field you could do something like this where test_fs is a multi-valued float field. The select functio

Re: Streaming expr as LTR feature

2023-05-31 Thread Alessandro Benedetti
Hi, we are working on contributing the possibility of having vector-similarity features, in Apache Solr Learning To Rank. We are starting from the Lucene contribution of related function queries, which we are close to merging. Then we'll do the Solr part. What you are trying to do has not been tes

Re: Streaming expr as LTR feature

2023-05-31 Thread rajani m
Validating the expression to begin with, it doesn't work. Vector math supports reading from an array of values so I tried the following expression. dotProduct(array(search(v9, q="id:1", fl="numeric_field_dfd",

Streaming expr as LTR feature

2023-05-30 Thread rajani m
Hi Solr Users, Does LTR Solr Feature support streaming expressions? Steaming expr supports vector math , I am trying to configure s