Class: Elasticsearch::DSL::Search::Queries::Fuzzy

Inherits:
Object
  • Object
show all
Includes:
BaseComponent
Defined in:
lib/elasticsearch/dsl/search/queries/fuzzy.rb

Overview

A query which uses a Levenshtein distance on string fields and plus-minus margin on numerical fields to match documents

Examples:


search do
  query do
    fuzzy :name do
      value 'Eyjafjallajökull'
    end
  end
end

search do
  query do
    fuzzy :published_on do
      value '2014-01-01'
      fuzziness '7d'
    end
  end
end

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize