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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ryantxu Ryan McKinley
            ryantxu Ryan McKinley
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment