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

Constructor Summary
Search()
           
 
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
 

Constructor Detail

Search

public Search()
Method Detail

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 searched
maxhits - maximum number of hits
structure - which document parts to be considered
index - 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 searched
maxhits - maximum number of hits
structure - which document parts to be considered
file - 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 searched
maxhits - maximum number of hits
structure - which document parts to be considered
url - URL for loading the index file to be searched
base - 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 searched
maxhits - maximum number of hits
structure - which document parts to be considered
inf - the loaded index file to be searched
base - 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