SYNOPSISvoid 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.
resets all server parameters to their initial state.
sets whether suffix processing will be performed or not.
gets whether suffix processing will be performed or not.
sets whether prefix processing will be performed or not.
gets whether prefix processing will be performed or not.
sets whether word rebuilding will be performed or not.
gets whether word rebuilding will be performed or not.
sets whether to include the start delimiter in hits or not.
gets whether to include the start delimiter in hits or not.
sets whether to include the end delimiter in hits or not.
gets whether to include the end delimiter in hits or not.
sets whether to process the w/
operator in queries or not.
gets whether to process the w/
operator in queries or not.
sets the minimum word length to strip when prefix/suffix processing.
gets the minimum word length to strip when prefix/suffix processing.
sets the intersection level to use for queries.
gets the intersection level to use for queries.
sets the start delimiter expression.
gets the start delimiter expression.
sets the end delimiter expression.
gets the end delimiter expression.
sets the suffix list used for suffix processing during search.
gets the suffix list used for suffix processing during search.
sets the suffix list used for suffix processing during equivalence lookup.
gets the suffix list used for suffix processing during equivalence lookup.
sets the prefix list used for prefix processing during search.
gets the prefix list used for prefix processing during search.
sets the noise word list used during query processing.
gets the noise word list used during query processing.
sets the name of the equivalence file.
gets the name of the equivalence file.
sets the name of the user equivalence file.
gets the name of the user equivalence file.
sets whether to lookup "see also" references during equivalence lookup or not.
gets whether to lookup "see also" references during equivalence lookup or not.
sets whether to use equivalences for words/phrases found in the equivalence file(s) or not.
gets whether to use equivalences for words/phrases found in the equivalence file(s) or not.
sets whether to remove noise words from the query during query processing.
gets whether to remove noise words from the query during query processing.