Solr
  1. Solr
  2. SOLR-2441

Requesting invalid field names should return an error

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major 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

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

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development