lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Miller (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-3214) If you use multiple fl entries rather than a comma separated list, all but the first entry can be ignored if you are using distributed search.
Date Wed, 14 Mar 2012 02:20:38 GMT

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

Mark Miller commented on SOLR-3214:
-----------------------------------

So I started looking at the following little bit of logic:
{noformat}
currently, "score" is synonymous with "*,score" so don't add "id" if the fl is empty or "score"
or it would change the meaning.

if (fl.length()!=0 && !"score".equals(fl) && !"*".equals(fl)) {
{noformat}

This also needs a bit of tweaking to work with multiple fls. However, in trying to fix that,
I realized this appears broken anyway. If you try and just ask for score back in distrib search,
it fails. Not so to a single node.

It appears that "currently, "score" is synonymous with "*,score"" is just not true currently.
If you ask a single node for fl=score, you only get back the score field. So later in distrib
search when we look for the id field, we cannot find it and get an NPE.
                
> If you use multiple fl entries rather than a comma separated list, all but the first
entry can be ignored if you are using distributed search.
> ----------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-3214
>                 URL: https://issues.apache.org/jira/browse/SOLR-3214
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>            Reporter: Mark Miller
>            Assignee: Mark Miller
>             Fix For: 4.0
>
>
> I have not checked yet, but prob in 3.x too.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message