graveyard v0.2.1 Graveyard.ORM.Query.ShouldMatch View Source

Link to this section Summary

Functions

Returns a Tirexs-ready map structure for a match query (reference: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query.html) The format of filter must follow this example:

%{"type" => "should_match", "field" => "name", "values" => ["Jav", "Mary"] "}

Link to this section Functions

Link to this function should_match_query(filter) View Source

Returns a Tirexs-ready map structure for a match query (reference: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query.html) The format of filter must follow this example:

%{"type" => "should_match", "field" => "name", "values" => ["Jav", "Mary"] "}