[ 
https://issues.apache.org/jira/browse/SOLR-2639?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hoss Man resolved SOLR-2639.
----------------------------

    Resolution: Cannot Reproduce
      Assignee: Hoss Man

Tao: I can not reproduce the problem you described, but it may be because i'm 
misunderstanding what you tried (w/o any specific configs or sample requests 
it's hard to be sure)

WIth the following patch against the trunk r1147272...

{noformat}
Index: solr/example/solr/conf/solrconfig.xml
===================================================================
--- solr/example/solr/conf/solrconfig.xml       (revision 1147272)
+++ solr/example/solr/conf/solrconfig.xml       (working copy)
@@ -713,6 +713,7 @@
      <lst name="defaults">
        <str name="echoParams">explicit</str>
        <int name="rows">10</int>
+       <str name="fl">id,score</str>
      </lst>
     <!-- In addition to defaults, "appends" params can be specified
          to identify values which should be appended to the list of
{noformat}

Then a URL for the example solr data that did not specify an fl param 
(http://localhost:8983/solr/select/?q=memory) correctly used the default and 
only returned the id and score fields for each match.

If you are still seeing a problem, please re-open this issue and attach either 
a patch against the example configs, or a full copy of your own configs along 
with details on exactly what request URL will reproduce the problem you are 
having  (or better still: a patch including a JUnit test of the problem)

> default "fl" in solrconfig.xml does not recognize 'score' as a field
> --------------------------------------------------------------------
>
>                 Key: SOLR-2639
>                 URL: https://issues.apache.org/jira/browse/SOLR-2639
>             Project: Solr
>          Issue Type: Bug
>          Components: SearchComponents - other
>    Affects Versions: 4.0
>         Environment: 4.0 trunk
>            Reporter: Tao Cheng
>            Assignee: Hoss Man
>            Priority: Minor
>
> Got the following exception when query SOLR without explicitly specifying 
> "&fl". In my solrconfig.xml, I set default value of "fl" to some fields 
> including 'score'.
> "type Status report
> message undefined field score
> description The request sent by the client was syntactically incorrect 
> (undefined field score)."
> I didn't have such error in my march trunk build. Note that when I set 
> "&fl=", all fields except 'score' are returned. In the March trunk build, 
> "&fl=" still makes SOLR returns all the default fields specified in 
> solrconfig.xml.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to