Class: Searcher::Filters

Inherits:
Object
  • Object
show all
Defined in:
lib/searcher.rb

Class Method Summary collapse

Class Method Details

.ngramObject



63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/searcher.rb', line 63

def self.ngram
  {
    type: "edgeNGram",
    min_gram: 2,
    max_gram: 20,
    token_chars: [
      "letter",
      "digit",
      "punctuation",
      "symbol"
    ]
  }
end