org.compass.core.lucene.engine.query
Class LuceneSearchEngineBooleanQueryBuilder

java.lang.Object
  extended by org.compass.core.lucene.engine.query.LuceneSearchEngineBooleanQueryBuilder
All Implemented Interfaces:
SearchEngineQueryBuilder.SearchEngineBooleanQueryBuilder, SearchEngineQueryBuilder.SearchEngineToQuery

public class LuceneSearchEngineBooleanQueryBuilder
extends Object
implements SearchEngineQueryBuilder.SearchEngineBooleanQueryBuilder

Author:
kimchy

Constructor Summary
LuceneSearchEngineBooleanQueryBuilder(LuceneSearchEngine searchEngine, boolean disableCoord)
           
 
Method Summary
 SearchEngineQueryBuilder.SearchEngineBooleanQueryBuilder addMust(SearchEngineQuery query)
           
 SearchEngineQueryBuilder.SearchEngineBooleanQueryBuilder addMustNot(SearchEngineQuery query)
           
 SearchEngineQueryBuilder.SearchEngineBooleanQueryBuilder addShould(SearchEngineQuery query)
           
 SearchEngineQueryBuilder.SearchEngineBooleanQueryBuilder setMinimumNumberShouldMatch(int min)
           
 SearchEngineQuery toQuery()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneSearchEngineBooleanQueryBuilder

public LuceneSearchEngineBooleanQueryBuilder(LuceneSearchEngine searchEngine,
                                             boolean disableCoord)
Method Detail

addMust

public SearchEngineQueryBuilder.SearchEngineBooleanQueryBuilder addMust(SearchEngineQuery query)
Specified by:
addMust in interface SearchEngineQueryBuilder.SearchEngineBooleanQueryBuilder

addMustNot

public SearchEngineQueryBuilder.SearchEngineBooleanQueryBuilder addMustNot(SearchEngineQuery query)
Specified by:
addMustNot in interface SearchEngineQueryBuilder.SearchEngineBooleanQueryBuilder

addShould

public SearchEngineQueryBuilder.SearchEngineBooleanQueryBuilder addShould(SearchEngineQuery query)
Specified by:
addShould in interface SearchEngineQueryBuilder.SearchEngineBooleanQueryBuilder

setMinimumNumberShouldMatch

public SearchEngineQueryBuilder.SearchEngineBooleanQueryBuilder setMinimumNumberShouldMatch(int min)
Specified by:
setMinimumNumberShouldMatch in interface SearchEngineQueryBuilder.SearchEngineBooleanQueryBuilder

toQuery

public SearchEngineQuery toQuery()
Specified by:
toQuery in interface SearchEngineQueryBuilder.SearchEngineToQuery


Copyright (c) 2004-2008 The Compass Project.