MnogoSearch.pm
NAME
Communiware::MnogoSearch - interface to some facilites of MnogoSearch search engine.
SYNOPSIS
use Communiware::Mnogosearch qw(check_stopword norm_word sp_cond_to_sql);
if (check_stopword('someword')) {}
@words = norm_word('someotherword');
%sql = sp_cond_to_sql($cnd);
DESCRIPTION
check_stopword
check_stopword('anyword')
check_stopword function checks if word - its argument - is stopword. That means it is present in STOPWORDS table.
norm_word
$normword = norm_word('anyword')
Function norm_word converts given word to its normalized form.
sp_cond_to_sql
$ret = sp_cond_to_sql($cnd);
Function takes internal representation of search pattern (see Communiware::Unifilters) and translates it into pieces of sql-query. It returns hash reference, which contains following keys:
16 октябрь 2007 13:45