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

use preferable default for langid.idField

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 3.5, 4.0-ALPHA
    • 4.0-BETA
    • contrib - LangId
    • None

    Description

      langid.idField is used for logging purpose in langid. If it is not set, "id" is set as default. But if no id field is there and the parameter is likely "hidden" and therefore indiscernible for users, those users got undesirable warnings in the log:

      WARNING: Document *null* does not contain input field subject. Skipping this field.
      

      As we can access IndexSchema in initParams(), why don't we use uniqueKey field as the default.

      Attachments

        1. SOLR-2838.patch
          1 kB
          Koji Sekiguchi

        Activity

          People

            teofili Tommaso Teofili
            koji Koji Sekiguchi
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: