Uploaded image for project: 'Kite SDK (READ-ONLY)'
  1. Kite SDK (READ-ONLY)
  2. KITE-755

Confusing Use of 'fmap' in solrCell Command Example

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 0.17.0
    • Fix Version/s: None
    • Component/s: Morphlines Module
    • Labels:
      None

      Description

      The following is an excerpt from the example within the documentation of solrCell:

        # rename "content" field to "text" fields
        fmap : { content : text, content-type : content_type }
      
        lowernames : true
      

      I find this example confusing because it doesn't seem that there's any need to include the content-type field in fmap. While I expect that the intention was to replace the illegal '-' character in the Solr field name with an underscore, that was not explained in the comment. According to the description of 'lowernames' in the documentation that precedes this example, 'lowernames' will "map all field names to lowercase with underscores," so doing this in 'fmap' does not seem necessary.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              twheeler@cloudera.com Tom Wheeler
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: