[
https://issues.apache.org/jira/browse/SOLR-4524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hoss Man reopened SOLR-4524:
----------------------------
Assignee: Hoss Man
There is no problem here, i think there is just user confusion about how to
include a "#" character in a URL -- "#" is a reserved character in URLs for
dealing with relative anchors, when you type a URL like this in your browser...
{noformat}
http://localhost:8983/solr/select?q=id:HOSS&fl=score&fl=#foo_s&fl=id
{noformat}
...the browser never sends anything after the "#" to the server.
If you URL escape it, then everything works fine...
{noformat}
$ curl -sS
'http://localhost:8983/solr/select?q=id:HOSS&fl=score&fl=%23foo_s&fl=id&indent=true&wt=json'
{
"responseHeader":{
"status":0,
"QTime":1,
"params":{
"fl":["score",
"#foo_s",
"id"],
"indent":"true",
"q":"id:HOSS",
"wt":"json"}},
"response":{"numFound":1,"start":0,"maxScore":3.8033605,"docs":[
{
"id":"HOSS",
"#foo_s":"special",
"score":3.8033605}]
}}
{noformat}
I've re-opened and assigned to myself to add a unit test demonstrating that a
field name like this works in the fl param.
> ReturnFields could not support hash '#' in filed name
> ------------------------------------------------------
>
> Key: SOLR-4524
> URL: https://issues.apache.org/jira/browse/SOLR-4524
> Project: Solr
> Issue Type: Bug
> Components: search
> Affects Versions: 4.1
> Reporter: Benjamin POUSSIN
> Assignee: Hoss Man
> Labels: field, fl, query, queryparser
>
> If some fields start with '#' and we try to put it in fl param, this field
> and all next fields are not in response document
> With query:
> q=*:*&fl=score,#id,myOtherField
> Document response is like:
> SolrDocument{score=3.809621}
> this bug is similar to SOLR-2719 and SOLR-4374
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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]