org.bejug.javacareers.jobs.search.lucene
Interface SearchResult


public interface SearchResult

Value class to encapsulate a search match.

Version:
$Revision: 1.1 $ - $Date: 2005/08/26 07:58:30 $
Author:
Bavo Bruylandt (Last modified by $Author: ge0ffrey $)

Method Summary
 void addContext(java.lang.String context)
          Sets the context around the search's match.
 java.util.List getContext()
          Gets the context around the search's match.
 java.lang.String getFile()
          Gets the path to file that contains a match.
 java.lang.String getQuery()
          Gets the query as it was interpreted.
 java.lang.String getUser()
           
 double getWeight()
          Gets the weight of this hit
 void setContext(java.util.List context)
          Sets the context around the search's match.
 void setFile(java.lang.String file)
          Sets the path to file that contains a match.
 void setQuery(java.lang.String query)
          Sets the query as it was interpreted.
 void setUser(java.lang.String user)
           
 void setWeight(double weight)
          Sets the weight for this hit
 

Method Detail

getQuery

public java.lang.String getQuery()
Gets the query as it was interpreted.

Returns:
Query in pqrsed form

setQuery

public void setQuery(java.lang.String query)
Sets the query as it was interpreted.

Parameters:
query - in parsed form

getFile

public java.lang.String getFile()
Gets the path to file that contains a match.

Returns:
path to file that contains a match

setFile

public void setFile(java.lang.String file)
Sets the path to file that contains a match.

Parameters:
file - Path to file that contains a match

getContext

public java.util.List getContext()
Gets the context around the search's match.

Returns:
The context around the search match

setContext

public void setContext(java.util.List context)
Sets the context around the search's match.

Parameters:
context - Context around the search match

addContext

public void addContext(java.lang.String context)
Sets the context around the search's match.

Parameters:
context - Context around the search match

getWeight

public double getWeight()
Gets the weight of this hit

Returns:
weight for this hit

setWeight

public void setWeight(double weight)
Sets the weight for this hit

Parameters:
weight - The weight for this hit

getUser

public java.lang.String getUser()
Returns:
the wanted user.

setUser

public void setUser(java.lang.String user)
Parameters:
user - the user to set.


Copyright © 2005-2006 BeJUG. All Rights Reserved.