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

Requesting invalid field names should return an error

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      If you send a request for fl=foofoofoo and that field does not exist, solr just returns empty documents:

      <result name="response" numFound="17" start="0">
        <doc></doc>
        <doc></doc>
        <doc></doc>
      </result>
      

      This seems like an error, not something we should support. (I think requesting an invalid field name should also be an error, but that is another issue)

      The distributed tests check if this is supported – I don't think they should

        Attachments

          Activity

            People

            • Assignee:
              ryantxu Ryan McKinley
              Reporter:
              ryantxu Ryan McKinley
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: