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

java.lang.Object
  extended by org.compass.core.lucene.engine.query.LuceneSearchEngineQueryBuilder
All Implemented Interfaces:
SearchEngineQueryBuilder

public class LuceneSearchEngineQueryBuilder
extends Object
implements SearchEngineQueryBuilder

Author:
kimchy

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.compass.core.engine.SearchEngineQueryBuilder
SearchEngineQueryBuilder.SearchEngineBooleanQueryBuilder, SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder, SearchEngineQueryBuilder.SearchEngineMultiPhraseQueryBuilder, SearchEngineQueryBuilder.SearchEngineMultiPropertyQueryStringBuilder, SearchEngineQueryBuilder.SearchEngineQuerySpanNearBuilder, SearchEngineQueryBuilder.SearchEngineQuerySpanOrBuilder, SearchEngineQueryBuilder.SearchEngineQueryStringBuilder, SearchEngineQueryBuilder.SearchEngineToQuery
 
Constructor Summary
LuceneSearchEngineQueryBuilder(LuceneSearchEngineFactory searchEngineFactory)
           
 
Method Summary
 SearchEngineQuery between(String resourcePropertyName, String low, String high, boolean inclusive)
           
 SearchEngineQuery between(String resourcePropertyName, String low, String high, boolean inclusive, boolean constantScore)
           
 SearchEngineQueryBuilder.SearchEngineBooleanQueryBuilder bool()
           
 SearchEngineQueryBuilder.SearchEngineBooleanQueryBuilder bool(boolean disableCoord)
           
 SearchEngineQuery fuzzy(String resourcePropertyName, String value)
           
 SearchEngineQuery fuzzy(String resourcePropertyName, String value, float minimumSimilarity)
           
 SearchEngineQuery fuzzy(String resourcePropertyName, String value, float minimumSimilarity, int prefixLength)
           
 SearchEngineQuery ge(String resourcePropertyName, String value)
           
 SearchEngineQuery gt(String resourcePropertyName, String value)
           
 SearchEngineQuery le(String resourcePropertyName, String value)
           
 SearchEngineQuery lt(String resourcePropertyName, String value)
           
 SearchEngineQuery matchAll()
           
 SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder moreLikeThis(SearchEngine searchEngine, Reader reader)
           
 SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder moreLikeThis(SearchEngine searchEngine, Resource idResource)
           
 SearchEngineQueryBuilder.SearchEngineMultiPhraseQueryBuilder multiPhrase(String resourcePropertyName)
           
 SearchEngineQueryBuilder.SearchEngineMultiPropertyQueryStringBuilder multiPropertyQueryString(String queryString)
           
 SearchEngineQuery prefix(String resourcePropertyName, String prefix)
           
 SearchEngineQueryBuilder.SearchEngineQueryStringBuilder queryString(String queryString)
           
 SearchEngineQuery.SearchEngineSpanQuery spanEq(String resourcePropertyName, String value)
           
 SearchEngineQuery.SearchEngineSpanQuery spanFirst(SearchEngineQuery.SearchEngineSpanQuery searchEngineSpanQuery, int end)
           
 SearchEngineQuery.SearchEngineSpanQuery spanFirst(String resourcePropertyName, String value, int end)
           
 SearchEngineQueryBuilder.SearchEngineQuerySpanNearBuilder spanNear(String resourcePropertyName)
           
 SearchEngineQuery.SearchEngineSpanQuery spanNot(SearchEngineQuery.SearchEngineSpanQuery include, SearchEngineQuery.SearchEngineSpanQuery exclude)
           
 SearchEngineQueryBuilder.SearchEngineQuerySpanOrBuilder spanOr()
           
 SearchEngineQuery term(String resourcePropertyName, String value)
           
 SearchEngineQuery wildcard(String resourcePropertyName, String wildcard)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneSearchEngineQueryBuilder

public LuceneSearchEngineQueryBuilder(LuceneSearchEngineFactory searchEngineFactory)
Method Detail

bool

public SearchEngineQueryBuilder.SearchEngineBooleanQueryBuilder bool()
Specified by:
bool in interface SearchEngineQueryBuilder

bool

public SearchEngineQueryBuilder.SearchEngineBooleanQueryBuilder bool(boolean disableCoord)
Specified by:
bool in interface SearchEngineQueryBuilder

multiPhrase

public SearchEngineQueryBuilder.SearchEngineMultiPhraseQueryBuilder multiPhrase(String resourcePropertyName)
Specified by:
multiPhrase in interface SearchEngineQueryBuilder

term

public SearchEngineQuery term(String resourcePropertyName,
                              String value)
Specified by:
term in interface SearchEngineQueryBuilder

between

public SearchEngineQuery between(String resourcePropertyName,
                                 String low,
                                 String high,
                                 boolean inclusive,
                                 boolean constantScore)
Specified by:
between in interface SearchEngineQueryBuilder

between

public SearchEngineQuery between(String resourcePropertyName,
                                 String low,
                                 String high,
                                 boolean inclusive)
Specified by:
between in interface SearchEngineQueryBuilder

ge

public SearchEngineQuery ge(String resourcePropertyName,
                            String value)
Specified by:
ge in interface SearchEngineQueryBuilder

gt

public SearchEngineQuery gt(String resourcePropertyName,
                            String value)
Specified by:
gt in interface SearchEngineQueryBuilder

le

public SearchEngineQuery le(String resourcePropertyName,
                            String value)
Specified by:
le in interface SearchEngineQueryBuilder

lt

public SearchEngineQuery lt(String resourcePropertyName,
                            String value)
Specified by:
lt in interface SearchEngineQueryBuilder

prefix

public SearchEngineQuery prefix(String resourcePropertyName,
                                String prefix)
Specified by:
prefix in interface SearchEngineQueryBuilder

wildcard

public SearchEngineQuery wildcard(String resourcePropertyName,
                                  String wildcard)
Specified by:
wildcard in interface SearchEngineQueryBuilder

matchAll

public SearchEngineQuery matchAll()
Specified by:
matchAll in interface SearchEngineQueryBuilder

fuzzy

public SearchEngineQuery fuzzy(String resourcePropertyName,
                               String value,
                               float minimumSimilarity)
Specified by:
fuzzy in interface SearchEngineQueryBuilder

fuzzy

public SearchEngineQuery fuzzy(String resourcePropertyName,
                               String value,
                               float minimumSimilarity,
                               int prefixLength)
Specified by:
fuzzy in interface SearchEngineQueryBuilder

fuzzy

public SearchEngineQuery fuzzy(String resourcePropertyName,
                               String value)
Specified by:
fuzzy in interface SearchEngineQueryBuilder

queryString

public SearchEngineQueryBuilder.SearchEngineQueryStringBuilder queryString(String queryString)
Specified by:
queryString in interface SearchEngineQueryBuilder

multiPropertyQueryString

public SearchEngineQueryBuilder.SearchEngineMultiPropertyQueryStringBuilder multiPropertyQueryString(String queryString)
Specified by:
multiPropertyQueryString in interface SearchEngineQueryBuilder

spanEq

public SearchEngineQuery.SearchEngineSpanQuery spanEq(String resourcePropertyName,
                                                      String value)
Specified by:
spanEq in interface SearchEngineQueryBuilder

spanFirst

public SearchEngineQuery.SearchEngineSpanQuery spanFirst(SearchEngineQuery.SearchEngineSpanQuery searchEngineSpanQuery,
                                                         int end)
Specified by:
spanFirst in interface SearchEngineQueryBuilder

spanFirst

public SearchEngineQuery.SearchEngineSpanQuery spanFirst(String resourcePropertyName,
                                                         String value,
                                                         int end)
Specified by:
spanFirst in interface SearchEngineQueryBuilder

spanNear

public SearchEngineQueryBuilder.SearchEngineQuerySpanNearBuilder spanNear(String resourcePropertyName)
Specified by:
spanNear in interface SearchEngineQueryBuilder

spanNot

public SearchEngineQuery.SearchEngineSpanQuery spanNot(SearchEngineQuery.SearchEngineSpanQuery include,
                                                       SearchEngineQuery.SearchEngineSpanQuery exclude)
Specified by:
spanNot in interface SearchEngineQueryBuilder

spanOr

public SearchEngineQueryBuilder.SearchEngineQuerySpanOrBuilder spanOr()
Specified by:
spanOr in interface SearchEngineQueryBuilder

moreLikeThis

public SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder moreLikeThis(SearchEngine searchEngine,
                                                                                  Resource idResource)
Specified by:
moreLikeThis in interface SearchEngineQueryBuilder

moreLikeThis

public SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder moreLikeThis(SearchEngine searchEngine,
                                                                                  Reader reader)
Specified by:
moreLikeThis in interface SearchEngineQueryBuilder


Copyright (c) 2004-2009 The Compass Project.