[
https://issues.apache.org/jira/browse/SOLR-7070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14304952#comment-14304952
]
Jan Høydahl commented on SOLR-7070:
-----------------------------------
I'm pretty sure what's going on here is that field names beginning with a
number will be wrongly interpreted as a function query, in this case a numeric
constant. Try {{fl=123,456_FOO}} and you'll see the problem.
Try this workaround
{code}
http://10.68.20.139:5080/solr4.6/reports_core3/select?q=PART_MAN:"BAV99|ROHM"&fl=_1_TOTAL_PARTS:field(1_TOTAL_PARTS)&wt=json&indent=true
{code}
There may be a way to avoid the leading underscore too? See
https://cwiki.apache.org/confluence/display/solr/Transforming+Result+Documents
> Issue when using "fl" with dynamic filelds without setting wilcards
> -------------------------------------------------------------------
>
> Key: SOLR-7070
> URL: https://issues.apache.org/jira/browse/SOLR-7070
> Project: Solr
> Issue Type: Bug
> Affects Versions: 4.10.3
> Reporter: Khalid Galal
> Labels: dynamic, fields
> Fix For: 4.6
>
>
> Issue when using "fl" with dynamic fields without setting wildcards, such as:
> In solr 4.6, I used to select dynamic fields by exact match, e.g. the below
> query used to work with me:
> fl=123_PART
> But in solr 4.10.3, the above query doesn't work any more, so I am forced to
> use a wildcards, such as to be begin with match, e.g. the below query:
> fl=*_PART
> The above query works but returns all dynamic fields that end with "_PART",
> and that results in bad performance as our dynamic fields are stored.
> Is there any way to be able to select a dynamic field exactly like in version
> 4.6?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]