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

langid.map.individual won't work with langid.map.keepOrig

    XMLWordPrintableJSON

Details

    Description

      Tried to get language detection to work.

      Setting:

      <processor class="org.apache.solr.update.processor.LangDetectLanguageIdentifierUpdateProcessorFactory">
            <str name="langid.fl">title,author</str>
            <str name="langid.langsField">detected_languages</str>
            <str name="langid.whitelist">de,en</str>
            <str name="langid.fallback">txt</str>
            <bool name="langid.map">true</bool>
            <bool name="langid.map.individual">true</bool>
            <bool name="langid.map.keepOrig">true</bool>
          </processor>
      

      Main purpose

      • Map fields individually
      • Keep the original field

      But the fields won't be mapped individually. They are mapped to a single detected language. After some hours of investigation i finally found the reason: The option langid.map.keepOrig breaks the individual mapping function. Only if it is disabled the fields will be mapped as expected.

      • Regards

      Attachments

        Issue Links

          Activity

            People

              janhoy Jan Høydahl
              toshokanin Marco Remy
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m