org.jboss.portal.search.query
Class Query

java.lang.Object
  extended by org.jboss.portal.search.query.Query

public class Query
extends java.lang.Object

The Query object is used to express a query. Common queries use mandatory terms, optional terms and missing terms. For instance you could do a query stating that you absolutely want the keyword 'Mustang' in your query, that the keyword 'car' is optional and could be used to show the results with the two keywords higher in the list and without the keyword 'horse'. In traditional search tools it would be represented as the string: "+mustang car -horse"

Version:
$Revision$
Author:
Thomas Heute

Constructor Summary
Query()
           
 
Method Summary
 void addMandatoryTerm(QueryTerm term)
           
 void addNotTerm(QueryTerm term)
           
 void addOptionalTerm(QueryTerm term)
           
 java.util.List getMandatoryTerms()
           
 java.util.List getNotTerms()
           
 java.util.List getOptionalTerms()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Query

public Query()
Method Detail

addMandatoryTerm

public void addMandatoryTerm(QueryTerm term)

addOptionalTerm

public void addOptionalTerm(QueryTerm term)

addNotTerm

public void addNotTerm(QueryTerm term)

getMandatoryTerms

public java.util.List getMandatoryTerms()

getNotTerms

public java.util.List getNotTerms()

getOptionalTerms

public java.util.List getOptionalTerms()