org.compass.core.lucene.engine
Class LuceneSearchEngineQuery

java.lang.Object
  extended by org.compass.core.lucene.engine.LuceneSearchEngineQuery
All Implemented Interfaces:
Cloneable, SearchEngineQuery
Direct Known Subclasses:
LuceneSearchEngineQuery.LuceneSearchEngineSpanQuery

public class LuceneSearchEngineQuery
extends Object
implements SearchEngineQuery, Cloneable

Author:
kimchy

Nested Class Summary
static class LuceneSearchEngineQuery.LuceneSearchEngineSpanQuery
           
 
Nested classes/interfaces inherited from interface org.compass.core.engine.SearchEngineQuery
SearchEngineQuery.SearchEngineSpanQuery
 
Constructor Summary
LuceneSearchEngineQuery(LuceneSearchEngine searchEngine, Query query)
           
LuceneSearchEngineQuery(LuceneSearchEngine searchEngine, QueryHolder query)
           
LuceneSearchEngineQuery(LuceneSearchEngine searchEngine, QueryHolder query, String defualtSearchProperty)
           
 
Method Summary
 SearchEngineQuery addSort(CompassQuery.SortImplicitType implicitType)
           
 SearchEngineQuery addSort(CompassQuery.SortImplicitType implicitType, CompassQuery.SortDirection direction)
           
 SearchEngineQuery addSort(SortField sortField)
           
 SearchEngineQuery addSort(String propertyName)
           
 SearchEngineQuery addSort(String propertyName, CompassQuery.SortDirection direction)
           
 SearchEngineQuery addSort(String propertyName, CompassQuery.SortPropertyType type)
           
 SearchEngineQuery addSort(String propertyName, CompassQuery.SortPropertyType type, CompassQuery.SortDirection direction)
           
 Object clone()
           
 long count()
           
 long count(float minimumScore)
           
 String[] getAliases()
           
 LuceneSearchEngineQueryFilter getFilter()
           
 Filter getLuceneFilter()
           
 Query getOriginalQuery()
           
 Query getQuery()
           
 Sort getSort()
           
 String[] getSubIndexes()
           
 SearchEngineHits hits()
           
 boolean isRewrite()
           
 boolean isSuggested()
           
 SearchEngineQuery rewrite()
           
 SearchEngineQuery setAliases(String[] aliases)
           
 SearchEngineQuery setBoost(float boost)
           
 SearchEngineQuery setFilter(SearchEngineQueryFilter filter)
           
 void setQuery(Query query)
           
 SearchEngineQuery setSubIndexes(String[] subindexes)
           
 void setSuggested(boolean suggested)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LuceneSearchEngineQuery

public LuceneSearchEngineQuery(LuceneSearchEngine searchEngine,
                               Query query)

LuceneSearchEngineQuery

public LuceneSearchEngineQuery(LuceneSearchEngine searchEngine,
                               QueryHolder query)

LuceneSearchEngineQuery

public LuceneSearchEngineQuery(LuceneSearchEngine searchEngine,
                               QueryHolder query,
                               String defualtSearchProperty)
Method Detail

addSort

public SearchEngineQuery addSort(String propertyName)
Specified by:
addSort in interface SearchEngineQuery

addSort

public SearchEngineQuery addSort(String propertyName,
                                 CompassQuery.SortDirection direction)
Specified by:
addSort in interface SearchEngineQuery

addSort

public SearchEngineQuery addSort(String propertyName,
                                 CompassQuery.SortPropertyType type)
Specified by:
addSort in interface SearchEngineQuery

addSort

public SearchEngineQuery addSort(String propertyName,
                                 CompassQuery.SortPropertyType type,
                                 CompassQuery.SortDirection direction)
Specified by:
addSort in interface SearchEngineQuery

addSort

public SearchEngineQuery addSort(CompassQuery.SortImplicitType implicitType)
Specified by:
addSort in interface SearchEngineQuery

addSort

public SearchEngineQuery addSort(CompassQuery.SortImplicitType implicitType,
                                 CompassQuery.SortDirection direction)
Specified by:
addSort in interface SearchEngineQuery

addSort

public SearchEngineQuery addSort(SortField sortField)

getSort

public Sort getSort()

count

public long count()
Specified by:
count in interface SearchEngineQuery

count

public long count(float minimumScore)
Specified by:
count in interface SearchEngineQuery

hits

public SearchEngineHits hits()
Specified by:
hits in interface SearchEngineQuery

setBoost

public SearchEngineQuery setBoost(float boost)
Specified by:
setBoost in interface SearchEngineQuery

setSubIndexes

public SearchEngineQuery setSubIndexes(String[] subindexes)
Specified by:
setSubIndexes in interface SearchEngineQuery

getSubIndexes

public String[] getSubIndexes()

setAliases

public SearchEngineQuery setAliases(String[] aliases)
Specified by:
setAliases in interface SearchEngineQuery

getAliases

public String[] getAliases()

setFilter

public SearchEngineQuery setFilter(SearchEngineQueryFilter filter)
Specified by:
setFilter in interface SearchEngineQuery

getFilter

public LuceneSearchEngineQueryFilter getFilter()

getLuceneFilter

public Filter getLuceneFilter()

rewrite

public SearchEngineQuery rewrite()
Specified by:
rewrite in interface SearchEngineQuery

isRewrite

public boolean isRewrite()

isSuggested

public boolean isSuggested()
Specified by:
isSuggested in interface SearchEngineQuery

getOriginalQuery

public Query getOriginalQuery()

getQuery

public Query getQuery()

toString

public String toString()
Overrides:
toString in class Object

clone

public Object clone()
             throws CloneNotSupportedException
Specified by:
clone in interface SearchEngineQuery
Overrides:
clone in class Object
Throws:
CloneNotSupportedException

setQuery

public void setQuery(Query query)

setSuggested

public void setSuggested(boolean suggested)


Copyright (c) 2004-2008 The Compass Project.