本文整理匯總了Java中org.alfresco.repo.search.impl.querymodel.impl.functions.FTSTerm類的典型用法代碼示例。如果您正苦於以下問題:Java FTSTerm類的具體用法?Java FTSTerm怎麽用?Java FTSTerm使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
FTSTerm類屬於org.alfresco.repo.search.impl.querymodel.impl.functions包,在下文中一共展示了FTSTerm類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: DBQueryModelFactory
import org.alfresco.repo.search.impl.querymodel.impl.functions.FTSTerm; //導入依賴的package包/類
public DBQueryModelFactory()
{
functions.put(Equals.NAME, new DBEquals());
functions.put(PropertyAccessor.NAME, new DBPropertyAccessor());
functions.put(Score.NAME, new DBScore());
functions.put(Upper.NAME, new DBUpper());
functions.put(Lower.NAME, new DBLower());
functions.put(NotEquals.NAME, new DBNotEquals());
functions.put(LessThan.NAME, new DBLessThan());
functions.put(LessThanOrEquals.NAME, new DBLessThanOrEquals());
functions.put(GreaterThan.NAME, new DBGreaterThan());
functions.put(GreaterThanOrEquals.NAME, new DBGreaterThanOrEquals());
functions.put(In.NAME, new DBIn());
functions.put(Like.NAME, new DBLike());
functions.put(Exists.NAME, new DBExists());
functions.put(Child.NAME, new DBChild());
functions.put(Descendant.NAME, new DBDescendant());
functions.put(FTSTerm.NAME, new DBFTSTerm());
functions.put(FTSPhrase.NAME, new DBFTSPhrase());
functions.put(FTSProximity.NAME, new DBFTSProximity());
functions.put(FTSRange.NAME, new DBFTSRange());
functions.put(FTSPrefixTerm.NAME, new DBFTSPrefixTerm());
functions.put(FTSWildTerm.NAME, new DBFTSWildTerm());
functions.put(FTSFuzzyTerm.NAME, new DBFTSFuzzyTerm());
}
示例2: LuceneQueryModelFactory
import org.alfresco.repo.search.impl.querymodel.impl.functions.FTSTerm; //導入依賴的package包/類
/**
* Default lucene query model factory and functions
*/
public LuceneQueryModelFactory()
{
functions.put(Equals.NAME, new LuceneEquals<Q, S, E>());
functions.put(PropertyAccessor.NAME, new LucenePropertyAccessor<Q, S, E>());
functions.put(Score.NAME, new LuceneScore<Q, S, E>());
functions.put(Upper.NAME, new LuceneUpper<Q, S, E>());
functions.put(Lower.NAME, new LuceneLower<Q, S, E>());
functions.put(NotEquals.NAME, new LuceneNotEquals<Q, S, E>());
functions.put(LessThan.NAME, new LuceneLessThan<Q, S, E>());
functions.put(LessThanOrEquals.NAME, new LuceneLessThanOrEquals<Q, S, E>());
functions.put(GreaterThan.NAME, new LuceneGreaterThan<Q, S, E>());
functions.put(GreaterThanOrEquals.NAME, new LuceneGreaterThanOrEquals<Q, S, E>());
functions.put(In.NAME, new LuceneIn<Q, S, E>());
functions.put(Like.NAME, new LuceneLike<Q, S, E>());
functions.put(Exists.NAME, new LuceneExists<Q, S, E>());
functions.put(Child.NAME, new LuceneChild<Q, S, E>());
functions.put(Descendant.NAME, new LuceneDescendant<Q, S, E>());
functions.put(FTSTerm.NAME, new LuceneFTSTerm<Q, S, E>());
functions.put(FTSPhrase.NAME, new LuceneFTSPhrase<Q, S, E>());
functions.put(FTSProximity.NAME, new LuceneFTSProximity<Q, S, E>());
functions.put(FTSRange.NAME, new LuceneFTSRange<Q, S, E>());
functions.put(FTSPrefixTerm.NAME, new LuceneFTSPrefixTerm<Q, S, E>());
functions.put(FTSWildTerm.NAME, new LuceneFTSWildTerm<Q, S, E>());
functions.put(FTSFuzzyTerm.NAME, new LuceneFTSFuzzyTerm<Q, S, E>());
}
示例3: buildTerm
import org.alfresco.repo.search.impl.querymodel.impl.functions.FTSTerm; //導入依賴的package包/類
static private Constraint buildTerm(CommonTree testNode, QueryModelFactory factory, FunctionEvaluationContext functionEvaluationContext,
Selector selector, Map<String, Column> columnMap)
{
String functionName = FTSTerm.NAME;
Function function = factory.getFunction(functionName);
Map<String, Argument> functionArguments = new LinkedHashMap<String, Argument>();
LiteralArgument larg = factory.createLiteralArgument(FTSTerm.ARG_TERM, DataTypeDefinition.TEXT, getText(testNode.getChild(0)));
functionArguments.put(larg.getName(), larg);
larg = factory.createLiteralArgument(FTSTerm.ARG_TOKENISATION_MODE, DataTypeDefinition.ANY, AnalysisMode.DEFAULT);
functionArguments.put(larg.getName(), larg);
return factory.createFunctionalConstraint(function, functionArguments);
}