public class SearchService extends Object
Constructor and Description |
---|
SearchService() |
Modifier and Type | Method and Description |
---|---|
void |
deleteSearch(String token,
int qpId) |
QueryResult[] |
find(String token,
QueryParams params) |
QueryResult[] |
findByContent(String token,
String content) |
QueryResult[] |
findByKeywords(String token,
String[] keywords) |
QueryResult[] |
findByName(String token,
String name) |
ResultSet |
findMoreLikeThis(String token,
String uuid,
int max) |
ResultSet |
findPaginated(String token,
QueryParams params,
int offset,
int limit) |
ResultSet |
findSimpleQueryPaginated(String token,
String statement,
int offset,
int limit) |
QueryParams[] |
getAllSearchs(String token) |
Document[] |
getCategorizedDocuments(String token,
String categoryId) |
IntegerPair[] |
getKeywordMap(String token,
String[] filter) |
QueryParams |
getSearch(String token,
int qpId) |
long |
saveSearch(String token,
QueryParams params) |
void |
updateSearch(String token,
QueryParams params) |
public QueryResult[] findByContent(String token, String content) throws IOException, ParseException, AccessDeniedException, RepositoryException, DatabaseException
public QueryResult[] findByName(String token, String name) throws IOException, ParseException, AccessDeniedException, RepositoryException, DatabaseException
public QueryResult[] findByKeywords(String token, String[] keywords) throws IOException, ParseException, AccessDeniedException, RepositoryException, DatabaseException
public QueryResult[] find(String token, QueryParams params) throws IOException, ParseException, AccessDeniedException, RepositoryException, DatabaseException
public ResultSet findPaginated(String token, QueryParams params, int offset, int limit) throws IOException, ParseException, AccessDeniedException, RepositoryException, DatabaseException
public ResultSet findSimpleQueryPaginated(String token, String statement, int offset, int limit) throws IOException, ParseException, AccessDeniedException, RepositoryException, DatabaseException
public ResultSet findMoreLikeThis(String token, String uuid, int max) throws IOException, ParseException, AccessDeniedException, RepositoryException, DatabaseException
public IntegerPair[] getKeywordMap(String token, String[] filter) throws AccessDeniedException, RepositoryException, DatabaseException
public Document[] getCategorizedDocuments(String token, String categoryId) throws AccessDeniedException, RepositoryException, DatabaseException
public long saveSearch(String token, QueryParams params) throws AccessDeniedException, RepositoryException, DatabaseException
public void updateSearch(String token, QueryParams params) throws AccessDeniedException, RepositoryException, DatabaseException
public QueryParams getSearch(String token, int qpId) throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException
public QueryParams[] getAllSearchs(String token) throws AccessDeniedException, RepositoryException, DatabaseException
public void deleteSearch(String token, int qpId) throws AccessDeniedException, RepositoryException, DatabaseException
Copyright © 2016. All rights reserved.