Package modules.commons.search
Interface SearchModule
-
public interface SearchModuleSearch implementation must implement this interface- Author:
- carlsamson
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconfigure(SearchConfiguration configuration)voiddelete(List<String> languages, Long id)Index having description (language) Document idObjectgetConnection()Optional<Document>getDocument(Long id, String language, RequestOptions option)Get Document for a specific languageList<Optional<Document>>getDocument(Long id, List<String> languages, RequestOptions option)Get document id for differet languasesStringgetUniqueCode()Search module codevoidindex(List<IndexItem> item)voidindex(IndexItem item)SearchResponsesearchKeywords(SearchRequest searchRequest)SearchResponsesearchProducts(SearchRequest searchRequest)
-
-
-
Method Detail
-
configure
void configure(SearchConfiguration configuration) throws Exception
- Throws:
Exception
-
delete
void delete(List<String> languages, Long id) throws Exception
Index having description (language) Document id- Parameters:
languages-id-- Throws:
Exception
-
getUniqueCode
String getUniqueCode()
Search module code- Returns:
-
searchKeywords
SearchResponse searchKeywords(SearchRequest searchRequest) throws Exception
- Throws:
Exception
-
searchProducts
SearchResponse searchProducts(SearchRequest searchRequest) throws Exception
- Throws:
Exception
-
getDocument
Optional<Document> getDocument(Long id, String language, RequestOptions option) throws Exception
Get Document for a specific language- Parameters:
id-language-- Returns:
- Throws:
Exception
-
getDocument
List<Optional<Document>> getDocument(Long id, List<String> languages, RequestOptions option) throws Exception
Get document id for differet languases- Parameters:
id-languages-- Returns:
- Throws:
Exception
-
getConnection
Object getConnection()
-
-