In Files

Methods

Class/Module Index [+]

Quicksearch

Ferret::Search::Spans::SpanTermQuery

Summary

A SpanTermQuery is the Spans version of TermQuery, the only difference being that it returns the start and end offset of all of its matches for use by enclosing SpanQueries.

Public Class Methods

new(field, term) → query click to toggle source

Create a new SpanTermQuery which matches all documents with the term term in the field field.

static VALUE
frb_spantq_init(VALUE self, VALUE rfield, VALUE rterm)
{
    Query *q = spantq_new(frb_field(rfield), StringValuePtr(rterm));
    Frt_Wrap_Struct(self, NULL, &frb_q_free, q);
    object_add(q, self);
    return self;
}

[Validate]

Generated with the Darkfish Rdoc Generator 2.