lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SOLR-2815) Fields with a "-" in the name are interpreted as functions in the fl= parameter.
Date Mon, 10 Oct 2011 18:22:30 GMT

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

Hoss Man resolved SOLR-2815.
----------------------------

    Resolution: Duplicate

Dup of SOLR-2719
                
> Fields with a "-" in the name are interpreted as functions in the fl= parameter.
> --------------------------------------------------------------------------------
>
>                 Key: SOLR-2815
>                 URL: https://issues.apache.org/jira/browse/SOLR-2815
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 4.0
>         Environment: Using latest from trunk
>            Reporter: Eric Pugh
>
> If you query for a field that has a "-" character in the name, you get odd results. 
I took the example schema and added a field called "in-stock" to go along with the existing
"inStock" field.  
> A query for http://localhost:8983/solr/select?q=*:*&fl=id,in-stock throws back an
error saying the field "in" can't be found.  
> I can sort of work around it by quoting the field name as "in-stock":
> http://localhost:8983/solr/select?q=*:*&fl=id,%22in-stock%22&rows=1
> However the output is still off:
> <doc>
> <str name="id">GB18030TEST</str>
> <str name=""in-stock"">in-stock</str>
> </doc>
> In looking at it, I think the dash character causes the field name to be interpreted
as an actual function!

--
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