mnoGoSearch for Ruby.
Author: Kachalov Anton <mouse@altlinux.ru>
Code based on PHP extension version 1.80

Description methods and classes

Class Mnogo

- create an agent:
    new(dbaddr,dbmode='')

example:
    Mnogo.new('mysql://root@localhost/mnogosearch/?dbmode=single')
    Mnogo.new('mysql://foo:bar@localhost/mnogo/','crc-multi')

- parameter set
    set_param(param, value)

example (setting local charset to 'koi8-r'):
    mnogo.set_param(Mnogo::UDM_PARAM_CHARSET, 'koi8-r')

- API version:
    version

- set search limit:
    add_search_limit(param, value)

example (searching only in "01" category):
    mnogo.set_param(Mnogo::UDM_LIMIT_CAT, '01')

- clear all search limits:
    clear_search_limits

- getting error message and error number:
    error
    errno

- search:
    find(query)

- total amount of documents in DB:
    doc_count

- get crc32 of string:
    crc32(str)

- check charset name:
    check_charset(charset)

- load ispell data
    ispell_load(type, lang, file, flag, charset='us-ascii')

example (using localhost server):
    ispell_load(Mnogo::UDM_ISPELL_TYPE_SERVER,'localhost','',1)

- free ispell data
    ispell_free

- class MnogoCat
    cat
    methods:
	list(path='')
	path(path)
	fields:
	    name
	    link
example:
    mnogo.cat.list.each {|x| print x.link,x.name,"\n"}

Class MnogoRes
- get the value of specified parameter:
    getparam(param)

example (getting search time):
    res.getparent(Mnogo::UDM_PARAM_SEARCHTIME)

- get the value of specified field:
    getfield(row, field)

example (gettin URL of first record):
    res.getfield(0,Mnogo::UDM_FIELD_URL)

- get search result in XML:
    xml

- get array with all fields or with field by parameter:
    each
    eachp(field)

example:
    each {|x| print 'Title: ',x.title,"\n"}
    eachp(Mnogo::UDM_FIELD_TITLE) {|x| print 'Title: ',x,"\n"}

Class MnogoField
- fields:
    urlid, url, content, title, keywords, desc, text, size, rating, modified
    order, crc, category, lang, charset, siteid
