org.alfresco.repo.search.impl.querymodel.impl.lucene
Interface LuceneQueryBuilder

All Known Implementing Classes:
LuceneQuery

public interface LuceneQueryBuilder


Method Summary
 org.apache.lucene.search.Query buildQuery(java.util.Set selectors, LuceneQueryBuilderContext luceneContext, FunctionEvaluationContext functionContext)
          Build the matching lucene query
 org.apache.lucene.search.Sort buildSort(java.util.Set selectors, LuceneQueryBuilderContext luceneContext, FunctionEvaluationContext functionContext)
          Build the matching lucene sort
 

Method Detail

buildQuery

org.apache.lucene.search.Query buildQuery(java.util.Set selectors,
                                          LuceneQueryBuilderContext luceneContext,
                                          FunctionEvaluationContext functionContext)
                                          throws org.apache.lucene.queryParser.ParseException
Build the matching lucene query

Parameters:
selectors -
luceneContext -
functionContext -
Returns:
- the query
Throws:
org.apache.lucene.queryParser.ParseException

buildSort

org.apache.lucene.search.Sort buildSort(java.util.Set selectors,
                                        LuceneQueryBuilderContext luceneContext,
                                        FunctionEvaluationContext functionContext)
Build the matching lucene sort

Parameters:
selectors -
luceneContext -
functionContext -
Returns:
- the sort spec


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.