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

Requesting invalid field names should return an error

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None
    • 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

        1. SOLR-2441-invalid-fl-error.patch
          8 kB
          Ryan McKinley
        2. SOLR-2441-invalid-fl-error.patch
          7 kB
          Ryan McKinley

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: