public class SearchImpl extends ClientImpl implements BaseSearch
| Constructor and Description |
|---|
SearchImpl(String host,
String user,
String password,
BeanHelper beanHelper)
SearchImpl
|
| Modifier and Type | Method and Description |
|---|---|
void |
deleteSearch(int qpId)
deleteSearch
|
List<QueryResult> |
find(QueryParams queryParams)
find
|
List<QueryResult> |
findByContent(String content)
findByContent
|
List<QueryResult> |
findByKeywords(List<String> keywords)
findByName
|
List<QueryResult> |
findByName(String name)
findByName
|
List<QueryResult> |
findByQuery(String query) |
ResultSet |
findByQueryPaginated(String query,
int offset,
int limit) |
ResultSet |
findMoreLikeThis(String uuid,
int max)
findMoreLikeThis
|
ResultSet |
findPaginated(QueryParams queryParams,
int offset,
int limit)
findPaginated
|
ResultSet |
findSimpleQueryPaginated(String statement,
int offset,
int limit)
findSimpleQueryPaginated
|
List<QueryParams> |
getAllSearchs()
getAllSearchs
|
List<Document> |
getCategorizedDocuments(String categoryId)
getCategorizedDocuments
|
Map<String,Integer> |
getKeywordMap(List<String> filter)
getKeywordMap
|
QueryParams |
getSearch(int qpId)
getSearch
|
long |
saveSearch(QueryParams params)
saveSearch
|
void |
updateSearch(QueryParams params)
updateSearch
|
getClientpublic SearchImpl(String host, String user, String password, BeanHelper beanHelper)
public List<QueryResult> findByContent(String content) throws IOException, ParseException, RepositoryException, DatabaseException, UnknowException, WebserviceException
findByContent in interface BaseSearchIOExceptionParseExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic List<QueryResult> findByName(String name) throws IOException, ParseException, RepositoryException, DatabaseException, UnknowException, WebserviceException
findByName in interface BaseSearchIOExceptionParseExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic List<QueryResult> findByKeywords(List<String> keywords) throws IOException, ParseException, RepositoryException, DatabaseException, UnknowException, WebserviceException
findByKeywords in interface BaseSearchIOExceptionParseExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic List<QueryResult> find(QueryParams queryParams) throws IOException, ParseException, RepositoryException, DatabaseException, UnknowException, WebserviceException
find in interface BaseSearchIOExceptionParseExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic ResultSet findPaginated(QueryParams queryParams, int offset, int limit) throws IOException, ParseException, RepositoryException, DatabaseException, UnknowException, WebserviceException
findPaginated in interface BaseSearchIOExceptionParseExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic ResultSet findSimpleQueryPaginated(String statement, int offset, int limit) throws IOException, ParseException, RepositoryException, DatabaseException, UnknowException, WebserviceException
findSimpleQueryPaginated in interface BaseSearchIOExceptionParseExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic ResultSet findMoreLikeThis(String uuid, int max) throws IOException, ParseException, RepositoryException, DatabaseException, UnknowException, WebserviceException
findMoreLikeThis in interface BaseSearchIOExceptionParseExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic Map<String,Integer> getKeywordMap(List<String> filter) throws RepositoryException, DatabaseException, UnknowException, WebserviceException
getKeywordMap in interface BaseSearchRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic List<Document> getCategorizedDocuments(String categoryId) throws RepositoryException, DatabaseException, UnknowException, WebserviceException
getCategorizedDocuments in interface BaseSearchRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic long saveSearch(QueryParams params) throws AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
saveSearch in interface BaseSearchAccessDeniedExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic void updateSearch(QueryParams params) throws AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
updateSearch in interface BaseSearchAccessDeniedExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic QueryParams getSearch(int qpId) throws PathNotFoundException, RepositoryException, DatabaseException, UnknowException, WebserviceException
getSearch in interface BaseSearchPathNotFoundExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic List<QueryParams> getAllSearchs() throws RepositoryException, DatabaseException, UnknowException, WebserviceException
getAllSearchs in interface BaseSearchRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic void deleteSearch(int qpId)
throws AccessDeniedException,
RepositoryException,
DatabaseException,
UnknowException,
WebserviceException
deleteSearch in interface BaseSearchAccessDeniedExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic List<QueryResult> findByQuery(String query) throws IOException, ParseException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
findByQuery in interface BaseSearchIOExceptionParseExceptionAccessDeniedExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic ResultSet findByQueryPaginated(String query, int offset, int limit) throws IOException, ParseException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
findByQueryPaginated in interface BaseSearchIOExceptionParseExceptionAccessDeniedExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionCopyright © 2020 Open Knowledge Management System S.L.. All Rights Reserved.