You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Eric Pugh (Created) (JIRA)" <ji...@apache.org> on 2011/10/06 22:47:29 UTC
[jira] [Created] (SOLR-2815) Fields with a "-" in the name are
interpreted as functions in the fl= parameter.
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
[jira] [Resolved] (SOLR-2815) Fields with a "-" in the name are
interpreted as functions in the fl= parameter.
Posted by "Hoss Man (Resolved) (JIRA)" <ji...@apache.org>.
[ 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