<commit_before>(ns wb-es.mappings.core)

(defn ref-mapping []
  {:type "nested"
   :properties {:wbid {:type "string"
                       :analyzer "keyword_ignore_case"}
                :label {:type "string"}
                :ref_type {:type "string"}}})

(def default-mapping
  {:properties
   {:wbid {:type "string"
           :analyzer "keyword_ignore_case"
           :include_in_all false}

    :label {:type "string"
            :include_in_all false
            :fields {:raw {:type "string"
                           :analyzer "keyword_ignore_case"}
                     :autocomplete {:type "string"<commit_msg>use keyword mapping for wbid for now<commit_after>(ns wb-es.mappings.core)

(defn ref-mapping []
  {:type "nested"
   :properties {:wbid {:type "string"
                       :analyzer "keyword_ignore_case"}
                :label {:type "string"}
                :ref_type {:type "string"}}})

(def default-mapping
  {:properties
   {:wbid {:type "string"
           :analyzer "keyword"
           :include_in_all false}

    :label {:type "string"
            :include_in_all false
            :fields {:raw {:type "string"
                           :analyzer "keyword_ignore_case"}
                     :autocomplete {:type "string"
{'fraction_non_alphanumeric': 0.1250989707046714, 'fraction_numerical': 0.0, 'mean_word_length': 1.9191685912240184, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '93722', 'n_tokens_mistral': 392, 'n_tokens_neox': 359, 'n_words': 89}