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

ReturnFields can return fields that were not requested

    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

        1. SOLR-8902-branch_6_0.patch
          24 kB
          Steven Rowe
        2. SOLR-8902.diff
          4 kB
          Ryan McKinley

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: