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
        7 kB
        Ryan McKinley
      2. SOLR-2441-invalid-fl-error.patch
        8 kB
        Ryan McKinley

        Activity

        Ryan McKinley made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 4.0 [ 12314992 ]
        Resolution Won't Fix [ 2 ]
        Ryan McKinley made changes -
        Attachment SOLR-2441-invalid-fl-error.patch [ 12474585 ]
        Ryan McKinley made changes -
        Assignee Ryan McKinley [ ryantxu ]
        Ryan McKinley made changes -
        Attachment SOLR-2441-invalid-fl-error.patch [ 12474563 ]
        Ryan McKinley made changes -
        Field Original Value New Value
        Summary Requesting no valid fields should return an error rather then returning empty docs Requesting invalid field names should return an error
        Ryan McKinley created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development