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

TermVectorComponents should provide good error messages when fieldtype isn't compatible with requested options

    Details

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

      Description

      As noted by grant on the email list, asking TermVectorComponent for things like termVectors, positions, and offsets can't produce meaningful results unless the field in question has the corrisponding schema option set to true – but the behavior of TVC when they not true is confusing to users.

      We should make TVC return a meaningful error if it's asked to return a certain type of info for field that it can't deal with - something making it clear what properties of hte schema need to be changed to make it work...

      http://old.nabble.com/Re%3A-TermVectorComponent-%3A-Required---Optional-Parameters-p26181454.html

        Attachments

        1. SOLR-1556.patch
          26 kB
          Grant Ingersoll
        2. SOLR-1556.patch
          26 kB
          Grant Ingersoll

          Activity

            People

            • Assignee:
              gsingers Grant Ingersoll
              Reporter:
              hossman Hoss Man
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: