Hello all,

Solr version 8.4

I have a very simple select expression here. What I’m trying to do is to add a 
constant value to incoming tuples.

My collection has only 1 document. Id_str is of type String. Other fields are 
Solr generated.

{
        "_version_":1692761378187640832,
        "id_str":"experiment123",
        "id":"18d658b13b6b072f"}]
  }

My streaming expression:

select(
                search(
                        myCollection,
                        q="*:*",
                        qt="/export",
                        sort="id_str asc",
                        fl="id_str"
                ),
                id_str,
                raw(ttt) as text // Docs state that select works with any 
evaluator. “raw” here is a stream evaluator.
        )

I also tried:

select(
                search(
                        myCollection,
                        q="*:*",
                        qt="/export",
                        sort="id_str asc",
                        fl="id_str"
                ),
                id_str,
                replace(text, null, withValue=raw(ttt)) as text //replace is 
described in select expression documentation. I also tried withValue=ttt 
directly
        )

No matter what I do, response only includes id_str field, without any error:

{
  "result-set":{
    "docs":[{
        "id_str":" experiment123"}
      ,{
        "EOF":true,
        "RESPONSE_TIME":45}]}}

I also tried wrapping text value with quotes, that didn’t work too.

What am I doing wrong?

--ufuk yilmaz

Sent from Mail for Windows 10

Reply via email to