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

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

public class LuceneSearchEngineMoreLikeThisQueryBuilder
extends Object
implements SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder

Author:
kimchy

Constructor Summary
LuceneSearchEngineMoreLikeThisQueryBuilder(LuceneSearchEngine searchEngine, Reader reader)
           
LuceneSearchEngineMoreLikeThisQueryBuilder(LuceneSearchEngine searchEngine, Resource idResource)
           
 
Method Summary
 SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder addProperty(String property)
           
 SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder setAliases(String[] aliases)
           
 SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder setAnalyzer(String analyzer)
           
 SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder setBoost(boolean boost)
           
 SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder setMaxNumTokensParsed(int maxNumTokensParsed)
           
 SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder setMaxQueryTerms(int maxQueryTerms)
           
 SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder setMaxWordLen(int maxWordLen)
           
 SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder setMinResourceFreq(int minDocFreq)
           
 SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder setMinTermFreq(int minTermFreq)
           
 SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder setMinWordLen(int minWordLen)
           
 SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder setProperties(String[] properties)
           
 SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder setStopWords(String[] stopWords)
           
 SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder setSubIndexes(String[] subIndexes)
           
 SearchEngineQuery toQuery()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneSearchEngineMoreLikeThisQueryBuilder

public LuceneSearchEngineMoreLikeThisQueryBuilder(LuceneSearchEngine searchEngine,
                                                  Resource idResource)

LuceneSearchEngineMoreLikeThisQueryBuilder

public LuceneSearchEngineMoreLikeThisQueryBuilder(LuceneSearchEngine searchEngine,
                                                  Reader reader)
Method Detail

setSubIndexes

public SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder setSubIndexes(String[] subIndexes)
Specified by:
setSubIndexes in interface SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder

setAliases

public SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder setAliases(String[] aliases)
Specified by:
setAliases in interface SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder

setProperties

public SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder setProperties(String[] properties)
Specified by:
setProperties in interface SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder

addProperty

public SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder addProperty(String property)
Specified by:
addProperty in interface SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder

setAnalyzer

public SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder setAnalyzer(String analyzer)
Specified by:
setAnalyzer in interface SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder

setBoost

public SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder setBoost(boolean boost)
Specified by:
setBoost in interface SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder

setMaxNumTokensParsed

public SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder setMaxNumTokensParsed(int maxNumTokensParsed)
Specified by:
setMaxNumTokensParsed in interface SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder

setMaxQueryTerms

public SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder setMaxQueryTerms(int maxQueryTerms)
Specified by:
setMaxQueryTerms in interface SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder

setMaxWordLen

public SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder setMaxWordLen(int maxWordLen)
Specified by:
setMaxWordLen in interface SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder

setMinResourceFreq

public SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder setMinResourceFreq(int minDocFreq)
Specified by:
setMinResourceFreq in interface SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder

setMinTermFreq

public SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder setMinTermFreq(int minTermFreq)
Specified by:
setMinTermFreq in interface SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder

setMinWordLen

public SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder setMinWordLen(int minWordLen)
Specified by:
setMinWordLen in interface SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder

setStopWords

public SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder setStopWords(String[] stopWords)
Specified by:
setStopWords in interface SearchEngineQueryBuilder.SearchEngineMoreLikeThisQueryBuilder

toQuery

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


Copyright (c) 2004-2008 The Compass Project.