Fix bug in SearchService API refactor

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14366 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Andrew Hind
2009-05-19 15:11:49 +00:00
parent d195ff8542
commit 464438e269
2 changed files with 9 additions and 7 deletions

View File

@@ -59,13 +59,6 @@ public abstract class AbstractSearcherComponent implements SearchService
return query(store, language, query, null);
}
public ResultSet query(StoreRef store, String language, String query,
QueryParameterDefinition[] queryParameterDefintions)
{
return query(store, language, query, queryParameterDefintions);
}
public List<NodeRef> selectNodes(NodeRef contextNodeRef, String xpath, QueryParameterDefinition[] parameters,
NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks)
throws InvalidNodeRefException, XPathException

View File

@@ -64,6 +64,15 @@ public class SearcherComponent extends AbstractSearcherComponent
throw new UnsupportedOperationException();
}
public ResultSet query(StoreRef store,
String language,
String query,
QueryParameterDefinition[] queryParameterDefinitions)
{
SearchService searcher = indexerAndSearcherFactory.getSearcher(store, true);
return searcher.query(store, language, query, queryParameterDefinitions);
}
public ResultSet query(SearchParameters searchParameters)
{
if(searchParameters.getStores().size() != 1)