|
|||||
| PREV CLASS NEXT CLASS | |||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||
java.lang.Object | +--swishej.SearchImpl
Class implementing the SWISH-E search.
SortResult,
ResultList| Constructor Summary | |
(package private) |
SearchImpl()
|
| Method Summary | |
(package private) static StrList |
expandstars(IndexFile inf,
StrList wlist)
Expand wildcards. |
(package private) static StrList |
fixnot(StrList wl)
Traverse StrList of keywords and reformat it for later parsing. |
(package private) static int |
getrulenum(java.lang.String word)
Return rule constant given word. |
(package private) static boolean |
isbooleanrule(java.lang.String word)
Check if given word is a boolean rule. |
(package private) static boolean |
ismeta(java.lang.String word)
Check if given word is a meta word for the search. |
(package private) static boolean |
isrule(java.lang.String word)
Check if given word is a rule. |
(package private) static boolean |
isunaryrule(java.lang.String word)
Check if given word is a unary rule. |
(package private) static StrList |
mkwlist(java.lang.String words)
Given keyword string break it in words represented by a StrList. |
(package private) static ResultList |
operate(ResultList rl,
int rulenum,
java.lang.String word,
int meta,
int andLevel,
IndexFile inf)
Search the indexfile and accumulate results. |
(package private) static ResultList |
parseterm(StrList wordlist,
boolean parseone,
int meta,
IndexFile inf)
Parse next term in keyword list and search accordingly. |
(package private) static java.lang.String |
search(IndexFile inf,
java.lang.String words,
int maxhits,
int structure,
java.net.URL base)
Perform keyword search. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
SearchImpl()
| Method Detail |
static int getrulenum(java.lang.String word)
word - word to be checked.static boolean isrule(java.lang.String word)
word - word to be checked.static boolean isbooleanrule(java.lang.String word)
word - word to be checked.static boolean isunaryrule(java.lang.String word)
word - word to be checked.static StrList mkwlist(java.lang.String words)
words - keyword stringstatic boolean ismeta(java.lang.String word)
word - word to be checkedstatic StrList fixnot(StrList wl)
wl - original keyword list
static ResultList parseterm(StrList wordlist,
boolean parseone,
int meta,
IndexFile inf)
wordlist - keyword listparseone - if true only one word is consideredmeta - active meta word number for the searchinf - index to be searched
static ResultList operate(ResultList rl,
int rulenum,
java.lang.String word,
int meta,
int andLevel,
IndexFile inf)
rl - ResultList from earlier invokationsrulenum - rule for merging resultsword - current keyword to be searchedmeta - active meta word number for the searchandLevel - nesting level of "and" terminf - index to be searched
static StrList expandstars(IndexFile inf,
StrList wlist)
word - list to be expanded
static java.lang.String search(IndexFile inf,
java.lang.String words,
int maxhits,
int structure,
java.net.URL base)
inf - index to be searchedwords - keywords to be searchedmaxhits - maximum number of hitsstructure - which meta information to be consideredbase - base URL or null, if not null result is HTML formatted
|
|||||
| PREV CLASS NEXT CLASS | |||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||