module Ferret

See the README

PriorityQueue

Constants

EXCEPTION_MAP
FIELD_TYPES
FIX_INT_MAX
I
OBJECT_SPACE
VERSION

Public Class Methods

locale → locale_str click to toggle source

Returns a string corresponding to the locale set. For example;

puts Ferret.locale #=> "en_US.UTF-8"
static VALUE frb_get_locale(VALUE self, VALUE locale)
{
    return (frb_locale ? rb_str_new2(frb_locale) : Qnil);
}
locale = "en_US.UTF-8" click to toggle source

Set the global locale. You should use this method to set different locales when indexing documents with different encodings.

static VALUE frb_set_locale(VALUE self, VALUE locale)
{
    char *l = ((locale == Qnil) ? NULL : rs2s(rb_obj_as_string(locale)));
    frb_locale = setlocale(LC_CTYPE, l);
    return frb_locale ? rb_str_new2(frb_locale) : Qnil;
}