swishej
Class Search
java.lang.Object
|
+--swishej.Search
- public class Search
- extends java.lang.Object
Class providing the SWISH-E based keyword search.
- See Also:
Consts
Method Summary |
static IndexFile |
loadindex(java.net.URL url)
Load SWISH-E index file. |
static java.lang.String |
search(java.lang.String words,
int maxhits,
int structure,
java.io.File file)
Perform keyword search. |
static java.lang.String |
search(java.lang.String words,
int maxhits,
int structure,
IndexFile inf,
java.net.URL base)
Perform keyword search. |
static java.lang.String |
search(java.lang.String words,
int maxhits,
int structure,
java.lang.String index)
Perform keyword search. |
static java.lang.String |
search(java.lang.String words,
int maxhits,
int structure,
java.net.URL url,
java.net.URL base)
Perform keyword search. |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
Search
public Search()
search
public static java.lang.String search(java.lang.String words,
int maxhits,
int structure,
java.lang.String index)
- Perform keyword search.
- Parameters:
words
- keywords to be searchedmaxhits
- maximum number of hitsstructure
- which document parts to be consideredindex
- filename for loading the index file to be searched- Returns:
- search result
search
public static java.lang.String search(java.lang.String words,
int maxhits,
int structure,
java.io.File file)
- Perform keyword search.
- Parameters:
words
- keywords to be searchedmaxhits
- maximum number of hitsstructure
- which document parts to be consideredfile
- file for loading the index file to be searched- Returns:
- search result
search
public static java.lang.String search(java.lang.String words,
int maxhits,
int structure,
java.net.URL url,
java.net.URL base)
- Perform keyword search.
- Parameters:
words
- keywords to be searchedmaxhits
- maximum number of hitsstructure
- which document parts to be consideredurl
- URL for loading the index file to be searchedbase
- base URL for documents in index or null- Returns:
- search result
search
public static java.lang.String search(java.lang.String words,
int maxhits,
int structure,
IndexFile inf,
java.net.URL base)
- Perform keyword search.
- Parameters:
words
- keywords to be searchedmaxhits
- maximum number of hitsstructure
- which document parts to be consideredinf
- the loaded index file to be searchedbase
- base URL for documents in index or null- Returns:
- search result
loadindex
public static IndexFile loadindex(java.net.URL url)
- Load SWISH-E index file.
- Parameters:
url
- URL of index file.- Returns:
- IndexFile or null if load was not successful
Contact: Christian.Werner@t-online.de