|
SYNOPSIS
void n_setdefaults(SERVER *se)
int n_setsuffixproc(SERVER *se,int suffixproc)
int n_getsuffixproc(SERVER *se)
int n_setprefixproc(SERVER *se,int prefixproc)
int n_getprefixproc(SERVER *se)
int n_setrebuild(SERVER *se,int rebuild)
int n_getrebuild(SERVER *se)
int n_setincsd(SERVER *se,int incsd)
int n_getincsd(SERVER *se)
int n_setinced(SERVER *se,int inced)
int n_getinced(SERVER *se)
int n_setwithinproc(SERVER *se,int withinproc)
int n_getwithinproc(SERVER *se)
int n_setminwordlen(SERVER *se,int minwordlen)
int n_getminwordlen(SERVER *se)
int n_setintersects(SERVER *se,int intersects)
int n_getintersects(SERVER *se)
int n_setsdexp(SERVER *se,str sdexp)
str n_getsdexp(SERVER *se)
int n_setedexp(SERVER *se,str edexp)
str n_getedexp(SERVER *se)
int n_setsuffix(SERVER *se,str *suffix)
str *n_getsuffix(SERVER *se)
int n_setsuffixeq(SERVER *se,str *suffixeq)
str *n_getsuffixeq(SERVER *se)
int n_setprefix(SERVER *se,str *prefix)
str *n_getprefix(SERVER *se)
int n_setnoise(SERVER *se,str *noise)
str *n_getnoise(SERVER *se)
int n_seteqprefix(SERVER *se,str eqprefix)
str n_geteqprefix(SERVER *se)
int n_setueqprefix(SERVER *se,str ueqprefix)
str n_getueqprefix(SERVER *se)
int n_setsee(SERVER *se,int see)
int n_getsee(SERVER *se)
int n_setkeepeqvs(SERVER *se,int keepeqvs)
int n_getkeepeqvs(SERVER *se)
int n_setkeepnoise(SERVER *se,int keepnoise)
int n_getkeepnoise(SERVER *se)
DESCRIPTION This collection of functions provides the needed control over how
a Metamorph server will behave. They are to be used prior to a call to n_setqry().
All of the functions have a common first argument which is the
omnipresent SERVER *. If a set function returns an int, the
value 0 means failure and not 0 means the operation was successful.
Those functions that have a void return value return nothing.
If a get function returns a pointer type, the value (type *)NULL
indicates a problem getting memory. Otherwise the pointer should be freed
when no longer needed.
For more details on the significance of these controls, see
chapter here about Metamorph Linguistics.
- void n_setdefaults(SERVER *se)
-
resets all server parameters to their initial state.
- int n_setsuffixproc(SERVER *se,int suffixproc)
-
sets whether suffix processing will be performed or not.
- int n_getsuffixproc(SERVER *se)
-
gets whether suffix processing will be performed or not.
- int n_setprefixproc(SERVER *se,int prefixproc)
-
sets whether prefix processing will be performed or not.
- int n_getprefixproc(SERVER *se)
-
gets whether prefix processing will be performed or not.
- int n_setrebuild(SERVER *se,int rebuild)
-
sets whether word rebuilding will be performed or not.
- int n_getrebuild(SERVER *se)
-
gets whether word rebuilding will be performed or not.
- int n_setincsd(SERVER *se,int incsd)
-
sets whether to include the start delimiter in hits or not.
- int n_getincsd(SERVER *se)
-
gets whether to include the start delimiter in hits or not.
- int n_setinced(SERVER *se,int inced)
-
sets whether to include the end delimiter in hits or not.
- int n_getinced(SERVER *se)
-
gets whether to include the end delimiter in hits or not.
- int n_setwithinproc(SERVER *se,int withinproc)
-
sets whether to process the w/ operator in queries or not.
- int n_getwithinproc(SERVER *se)
-
gets whether to process the w/ operator in queries or not.
- int n_setminwordlen(SERVER *se,int minwordlen)
-
sets the minimum word length to strip when prefix/suffix processing.
- int n_getminwordlen(SERVER *se)
-
gets the minimum word length to strip when prefix/suffix processing.
- int n_setintersects(SERVER *se,int intersects)
-
sets the intersection level to use for queries.
- int n_getintersects(SERVER *se)
-
gets the intersection level to use for queries.
- int n_setsdexp(SERVER *se,str sdexp)
-
sets the start delimiter expression.
- str n_getsdexp(SERVER *se)
-
gets the start delimiter expression.
- int n_setedexp(SERVER *se,str edexp)
-
sets the end delimiter expression.
- str n_getedexp(SERVER *se)
-
gets the end delimiter expression.
- int n_setsuffix(SERVER *se,str *suffix)
-
sets the suffix list used for suffix processing during search.
- str *n_getsuffix(SERVER *se)
-
gets the suffix list used for suffix processing during search.
- int n_setsuffixeq(SERVER *se,str *suffixeq)
-
sets the suffix list used for suffix processing during equivalence
lookup.
- str *n_getsuffixeq(SERVER *se)
-
gets the suffix list used for suffix processing during equivalence
lookup.
- int n_setprefix(SERVER *se,str *prefix)
-
sets the prefix list used for prefix processing during search.
- str *n_getprefix(SERVER *se)
-
gets the prefix list used for prefix processing during search.
- int n_setnoise(SERVER *se,str *noise)
-
sets the noise word list used during query processing.
- str *n_getnoise(SERVER *se)
-
gets the noise word list used during query processing.
- int n_seteqprefix(SERVER *se,str eqprefix)
-
sets the name of the equivalence file.
- str n_geteqprefix(SERVER *se)
-
gets the name of the equivalence file.
- int n_setueqprefix(SERVER *se,str ueqprefix)
-
sets the name of the user equivalence file.
- str n_getueqprefix(SERVER *se)
-
gets the name of the user equivalence file.
- int n_setsee(SERVER *se,int see)
-
sets whether to lookup "see also" references during equivalence
lookup or not.
- int n_getsee(SERVER *se)
-
gets whether to lookup "see also" references during equivalence
lookup or not.
- int n_setkeepeqvs(SERVER *se,int keepeqvs)
-
sets whether to use equivalences for words/phrases found in
the equivalence file(s) or not.
- int n_getkeepeqvs(SERVER *se)
-
gets whether to use equivalences for words/phrases found in
the equivalence file(s) or not.
- int n_setkeepnoise(SERVER *se,int keepnoise)
-
sets whether to remove noise words from the query during
query processing.
- int n_getkeepnoise(SERVER *se)
-
gets whether to remove noise words from the query during
query processing.
Copyright © Thunderstone Software Last updated: Sun Mar 17 21:14:49 EDT 2013
|