Class wais.WAISResultSet
All Packages Class Hierarchy This Package Previous Next Index
Class wais.WAISResultSet
java.lang.Object
|
+----wais.WAISResultSet
- public class WAISResultSet
- extends Object
The class for combining the results returned by filter queries
and ranking queries to the WAIS search engine. WAIS does not
have a facility for internally handling. So our way around it is
to submit two queries - one based on the filter expression and
one on the ranking expression. The final result set includes
all documents in the filter expression with their socre adjusted
as follows - if the document appears in the result set from the
ranking expression, use the ranking score as the score; if the
documennt does not appear in the result set from the ranking
expressing, set its score to 0.
-
WAISResultSet(Query)
- Instantiate a new WAISResultSet and create the hashtables.
-
AddFilterResult(String)
- Add a new document to the filter results set
-
AddRankingResult(String)
- Add a new document to the ranking results set
-
MergeFilterAndRanking()
- Merge the filter and ranking result sets and create a generic
results set including the merged documents.
WAISResultSet
public WAISResultSet(Query query)
- Instantiate a new WAISResultSet and create the hashtables.
AddFilterResult
public void AddFilterResult(String result) throws SourceException
- Add a new document to the filter results set
- Parameters:
- result - The result string from the WAIS search engine.
AddRankingResult
public void AddRankingResult(String result) throws SourceException
- Add a new document to the ranking results set
- Parameters:
- result - The result string from the WAIS search engine.
MergeFilterAndRanking
public int MergeFilterAndRanking() throws SourceException
- Merge the filter and ranking result sets and create a generic
results set including the merged documents. Return the final
number of results
All Packages Class Hierarchy This Package Previous Next Index