Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-8902

ReturnFields can return fields that were not requested

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

      Description

      It looks like something changed that now returns all fields requested from lucene, not just the ones request from solr.

      This is the difference between 'fields' and 'okFieldNames' in SolrReturnFields.

      The logic here:
      https://github.com/apache/lucene-solr/blob/master/solr/core/src/java/org/apache/solr/search/SolrReturnFields.java#L141

      adds all the 'fields' to 'okFieldName'

      I think that should be removed

        Attachments

          Activity

            People

            • Assignee:
              ryantxu Ryan McKinley
              Reporter:
              ryantxu Ryan McKinley

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment