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.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1
    • 4.0-ALPHA
    • None
    • 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

        1. SOLR-2352.patch
          8 kB
          Chris M. Hostetter

        Issue Links

          Activity

            People

              hossman Chris M. Hostetter
              jglazner Jed Glazner
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: