[ 
https://issues.apache.org/jira/browse/SOLR-7070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14304877#comment-14304877
 ] 

Khalid Galal commented on SOLR-7070:
------------------------------------

The field *_TOTAL_PARTS is a dynamic field, which can accept any field like 
"1_TOTAL_PARTS, 2_TOTAL_PARTS, 3_TOTAL_PARTS, .......".


The below is the document without using fl:
{code}
{
  "responseHeader": {
    "status": 0,
    "QTime": 0
  },
  "response": {
    "numFound": 1,
    "start": 0,
    "docs": [
      {
        "PART_MAN": "BAV99|ROHM",
        "1_TOTAL_PARTS": 1,
        "2_TOTAL_PARTS": 2,
        "3_TOTAL_PARTS": 1,
        "_version_": 1492079515803844600
      }
    ]
  }
}
{code}

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

Reply via email to