<commit_before># frozen_string_literal: true

class StatusesIndex < Chewy::Index
  settings index: { refresh_interval: '15m' }, analysis: {
    analyzer: {
      content: {
        type: 'custom', 
        tokenizer: 'kuromoji_tokenizer',
        filter: %w(
          kuromoji_baseform
          kuromoji_part_of_speech
          cjk_width
          ja_stop
          kuromoji_stemmer<commit_msg>Support Japanese for full-text seatch<commit_after># frozen_string_literal: true

class StatusesIndex < Chewy::Index
  settings index: { refresh_interval: '15m' }, analysis: {
    analyzer: {
      content: {
        char_filter: %w(
          icu_normalizer                    
        ),
        type: 'custom', 
        tokenizer: 'kuromoji_tokenizer',
        filter: %w(
          kuromoji_baseform
          kuromoji_part_of_speech
          cjk_width
          ja_stop
          kuromoji_stemmer
{'fraction_non_alphanumeric': 0.0778642936596218, 'fraction_numerical': 0.004449388209121246, 'mean_word_length': 2.103448275862069, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7361579', 'n_tokens_mistral': 281, 'n_tokens_neox': 277, 'n_words': 54}