SearchOperations
Class SearchEngine

java.lang.Object
  extended by SearchOperations.SearchEngine

public class SearchEngine
extends java.lang.Object

Facilitates the searching activities of the application


Constructor Summary
SearchEngine()
           
 
Method Summary
static java.util.Vector getDocumentRankings(Query Query, DocumentTreeSet DocumentTreeSet)
          Gets a vector with document rankings derived from the document term weights and the query term weights.
static java.util.Vector getRelevantDocuments(Query Query, DocumentTreeSet DocumentTreeSet)
          Gets a vector with the relevant documents that satisfy the query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchEngine

public SearchEngine()
Method Detail

getRelevantDocuments

public static java.util.Vector getRelevantDocuments(Query Query,
                                                    DocumentTreeSet DocumentTreeSet)
Gets a vector with the relevant documents that satisfy the query. It is used for implementing the boolean search model and passes the query to each document in order to recognize the document's relativity to the query.


getDocumentRankings

public static java.util.Vector getDocumentRankings(Query Query,
                                                   DocumentTreeSet DocumentTreeSet)
Gets a vector with document rankings derived from the document term weights and the query term weights. If a document's rank is NaN it means that the document does not contain the specified term and it is not included in the output vector. This function implements the Vector Search Model. The result is sorted in descending order.