/*
* call-seq:
* PrefixQuery.new(field, prefix, options = {}) -> prefix-query
*
* Create a new PrefixQuery to search for all terms with the prefix +prefix+
* in the field +field+. There is one option that you can set to change the
* behaviour of this query. +:max_terms+ specifies the maximum number of
* terms to be added to the query when it is expanded into a MultiTermQuery.
* Let's say for example you search an index with a million terms for all
* terms beginning with the letter "s". You would end up with a very large
* query which would use a lot of memory and take a long time to get results,
* not to mention that it would probably match every document in the index.
* To prevent queries like this crashing your application you can set
* +:max_terms+ which limits the number of terms that get added to the query.
* By default it is set to 512.
*/
static VALUE
frt_prq_init(int argc, VALUE *argv, VALUE self)
{
return frt_mtq_init_specific(argc, argv, self, &prefixq_new);
}