org.eml.sir.retr
Class SearchResult

java.lang.Object
  extended byorg.eml.sir.retr.SearchResult

public class SearchResult
extends java.lang.Object

The result that a SearchRanker creates.

Author:
Hendrik Niederlich (EML-R)

Constructor Summary
SearchResult()
          Create a new SearchResult instance.
 
Method Summary
 void createAlphabeticalFile(java.lang.String fileName)
          Create human readable file, ordered alphabeticaly.
 void createExplanationFile(java.lang.String fileName)
          Create explanation file.
 void createRankedFile(java.lang.String fileName)
          Create human readable file, ordered by relatedness.
static void createTrecFile(java.util.ArrayList results, java.lang.String fileName)
          Create TREC file.
 void setAlphabet(java.util.ArrayList alphabet)
          Set the alphabet.
 void setExplanations(java.util.HashMap explanations)
          Set the explanations.
 void setIndexProperties(IndexProperties ip)
          Set the index properties.
 void setProfNames(java.util.HashMap profNames)
          Set the profession names.
 void setQueryFile(java.lang.String queryFile)
          Set the query file.
 void setQueryGenerator(QueryGenerator qg)
          Set the query generator.
 void setQueryString(java.lang.String queryString)
          Set the query string.
 void setRanking(java.util.ArrayList ranking)
          Set the ranking list.
 void setScores(java.util.HashMap scores)
          Set the scores map.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchResult

public SearchResult()
Create a new SearchResult instance.

Method Detail

setQueryFile

public void setQueryFile(java.lang.String queryFile)
Set the query file.


setIndexProperties

public void setIndexProperties(IndexProperties ip)
Set the index properties.


setQueryGenerator

public void setQueryGenerator(QueryGenerator qg)
Set the query generator.


setAlphabet

public void setAlphabet(java.util.ArrayList alphabet)
Set the alphabet.


setExplanations

public void setExplanations(java.util.HashMap explanations)
Set the explanations.


setProfNames

public void setProfNames(java.util.HashMap profNames)
Set the profession names.


setQueryString

public void setQueryString(java.lang.String queryString)
Set the query string.


setRanking

public void setRanking(java.util.ArrayList ranking)
Set the ranking list.


setScores

public void setScores(java.util.HashMap scores)
Set the scores map.


createRankedFile

public void createRankedFile(java.lang.String fileName)
                      throws java.io.IOException
Create human readable file, ordered by relatedness.

Throws:
java.io.IOException

createAlphabeticalFile

public void createAlphabeticalFile(java.lang.String fileName)
                            throws java.io.IOException
Create human readable file, ordered alphabeticaly.

Throws:
java.io.IOException

createTrecFile

public static void createTrecFile(java.util.ArrayList results,
                                  java.lang.String fileName)
                           throws java.io.IOException
Create TREC file.

Parameters:
results - List of SearchResult instances in ranking order.
Throws:
java.io.IOException

createExplanationFile

public void createExplanationFile(java.lang.String fileName)
                           throws java.io.IOException
Create explanation file.

Throws:
java.io.IOException