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

TermVectorComponent fails with "Undefined Field" errors for score, *, or any Solr 4x psuedo-fields used in the "fl" param.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 4.0-ALPHA
    • Labels:
      None
    • Environment:

      Ubuntu 10.04/Arch solr 3.x branch r1058326

      Description

      When searching using the term vector components and setting fl=*,score the result is a http 400 error 'undefined field: *'. If you disable the tvc the search works properly.

      Example bad request...

      http://localhost:8983/solr/select/?qt=tvrh&q=includes:[*+TO+*]&fl=*

      3.1 stack trace:

      SEVERE: org.apache.solr.common.SolrException: undefined field: *
         at org.apache.solr.handler.component.TermVectorComponent.process(TermVectorComponent.java:142)
      ...
      

      The work around is to explicitly use the tv.fl param when using psuedo-fields in the fl...

      http://localhost:8983/solr/select/?qt=tvrh&q=includes:[*+TO+*]&fl=*&tv.fl=includes

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hossman Hoss Man
                Reporter:
                jglazner Jed Glazner
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: