lib/estella/analysis.rb in estella-5.0.0 vs lib/estella/analysis.rb in estella-5.0.1

- old
+ new

@@ -16,13 +16,10 @@ { type: 'custom', tokenizer: 'standard_tokenizer', filter: %w[shingle lowercase asciifolding] } NGRAM_ANALYZER = { type: 'custom', tokenizer: 'standard_tokenizer', filter: %w[lowercase asciifolding front_ngram_filter] } - EMAIL_ANALYZER = - { type: 'custom', tokenizer: 'uax_url_email', filter: %w[lowercase stop] } - DEFAULT_ANALYSIS = { tokenizer: { standard_tokenizer: { type: 'standard' } }, filter: { @@ -31,29 +28,26 @@ analyzer: { default_analyzer: DEFAULT_ANALYZER, snowball_analyzer: SNOWBALL_ANALYZER, shingle_analyzer: SHINGLE_ANALYZER, ngram_analyzer: NGRAM_ANALYZER, - email_analyzer: EMAIL_ANALYZER, search_analyzer: DEFAULT_ANALYZER } } DEFAULT_FIELDS = { default: { type: 'text', analyzer: 'default_analyzer' }, snowball: { type: 'text', analyzer: 'snowball_analyzer' }, shingle: { type: 'text', analyzer: 'shingle_analyzer' }, - ngram: { type: 'text', analyzer: 'ngram_analyzer', search_analyzer: 'search_analyzer' }, - email: { type: 'text', analyzer: 'email_analyzer' } + ngram: { type: 'text', analyzer: 'ngram_analyzer', search_analyzer: 'search_analyzer' } } DEFAULT_FIELD_FACTORS = { default: 10, ngram: 10, snowball: 3, shingle: 2, - search: 2, - email: 2 + search: 2 } FULLTEXT_ANALYSIS = DEFAULT_FIELDS.keys DEFAULT_SETTINGS = if defined? Rails && Rails.env == 'test'