lucene-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörn Franke (Jira) <j...@apache.org>
Subject [jira] [Comment Edited] (SOLR-13894) Solr 8.3 streaming expreessions do not return all fields (select)
Date Wed, 06 Nov 2019 21:15:00 GMT

    [ https://issues.apache.org/jira/browse/SOLR-13894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16968715#comment-16968715
] 

Jörn Franke edited comment on SOLR-13894 at 11/6/19 9:14 PM:
-------------------------------------------------------------

This is also reproducible in Solr 8.3.0 server. Just go to the admin UI, any collection and
execute the following on the streaming handler:

{color:#222222}select(search(testcollection,q{color}{color:#222222}=“test”,df=“Default”,defType=“{color}{color:#222222}edismax”,fl=“id”,
qt=“/export”, sort=“id asc”),id,if(eq(1,1),Y,N) as found){color}

{color:#222222}In {color}{color:#222222}8.3{color}{color:#222222} it returns only the id
field => INCORRECT{color}
 {color:#222222}In 8.2 it returns id,found field => CORRECT{color}

{color:#222222}Since "found" is generated by select (and not coming from the collection) there
must be an issue with select.{color}

 

{color:#222222}Debug logs do not show any error and the expression is correctly received by
Solr.{color}


was (Author: jornfranke):
This is also reproducible in Solr 8.3.0 server. Just go to the admin UI, any collection and
execute the following on the streaming handler:


{color:#222222}select(search(testcollection,q{color}{color:#222222}=“test”,df=“Default”,defType=“{color}{color:#222222}edismax”,fl=“id”,
qt=“/export”, sort=“id asc”),id,if(eq(1,1),Y,N) as found){color}

{color:#222222}In {color}{color:#222222}8.3{color}{color:#222222} it returns only the id
field => INCORRECT{color}
{color:#222222}In 8.2 it returns id,found field => CORRECT{color}

{color:#222222}Since found is generated by select (and not coming from the collection) there
must be an issue with select.{color}

 

{color:#222222}Debug logs do not show any error and the expression is correctly received by
Solr.{color}

> Solr 8.3 streaming expreessions do not return all fields (select)
> -----------------------------------------------------------------
>
>                 Key: SOLR-13894
>                 URL: https://issues.apache.org/jira/browse/SOLR-13894
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrCloud, streaming expressions
>    Affects Versions: 8.3.0
>            Reporter: Jörn Franke
>            Priority: Major
>
> {color:#222222}I use streaming expressions, e.g.{color}
> {color:#222222}sortsSelect(search(...),id,if({color}{color:#222222}eq(1,1),Y,N) as found),
by=“field A asc”){color}
> {color:#222222}(Using export handler, sort is not really mandatory , I will remove it
later anyway){color}
> {color:#222222}This works perfectly fine if I use Solr 8.2.0 (server + client). It returns
Tuples in the form \{ “id”,”12345”, “found”:”Y”}{color}
> {color:#222222}However, if I use Solr 8.2.0 as server and Solr 8.3.0 as client then the
above statement only returns the id field, but not the "found" field.{color}
> {color:#222222}Questions:{color}
> {color:#222222}1) is this expected behavior, ie Solr client 8.3.0 is in this case not
compatible with Solr 8.2.0 and server upgrade to Solr 8.3.0 will fix this?{color}
> {color:#222222}2) has the syntax for the above expression changed? If so how?{color}
> {color:#222222}3) is this not expected behavior and I should create a Jira for it?{color}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Mime
View raw message