Class: Ferret::Search::MultiTermQuery
- Inherits:
-
Object
- Object
- Ferret::Search::MultiTermQuery
- Defined in:
- ext/r_search.c
Overview
Summary
MultiTermQuery matches documents that contain one of a list of terms in a specific field. This is the basic building block for queries such as;
-
PrefixQuery
-
WildcardQuery
-
FuzzyQuery
MultiTermQuery is very similar to a boolean “Or” query. It is highly optimized though as it focuses on a single field.
Example
multi_term_query = MultiTermQuery.new(:content, :max_term => 10)
multi_term_query << "Ruby" << "Ferret" << "Rails" << "Search"