public final class ElasticSearchParameterUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
MARKER_AUTOCOMPLETE |
static String |
MARKER_ELEMENTS |
static String |
MARKER_ITEM |
static String |
MARKER_PAYLOAD |
static String |
PROP_PATH_ELK_INDEX |
static String |
PROP_PATH_ELK_TYPE_USER |
static String |
PROP_URL_ELK_SERVER |
| Modifier and Type | Method and Description |
|---|---|
static fr.paris.lutece.plugins.libraryelastic.business.suggest.CompletionSuggestRequest |
buildAutoCompleteSearch(String champ)
Format auto complete search.
|
static fr.paris.lutece.plugins.libraryelastic.business.search.SearchRequest |
buildSearchRequest(Map<String,String> map)
Build a search requet for elasticsearch.
|
static com.fasterxml.jackson.databind.JsonNode |
setJsonToJsonTree(String strJson)
Sets the json to json tree.
|
public static final String MARKER_AUTOCOMPLETE
public static final String MARKER_ITEM
public static final String MARKER_ELEMENTS
public static final String MARKER_PAYLOAD
public static final String PROP_URL_ELK_SERVER
public static final String PROP_PATH_ELK_INDEX
public static final String PROP_PATH_ELK_TYPE_USER
public static fr.paris.lutece.plugins.libraryelastic.business.suggest.CompletionSuggestRequest buildAutoCompleteSearch(String champ)
champ - the champcom.fasterxml.jackson.core.JsonGenerationException - the json generation exceptioncom.fasterxml.jackson.databind.JsonMappingException - the json mapping exceptionIOException - Signals that an I/O exception has occurred.public static fr.paris.lutece.plugins.libraryelastic.business.search.SearchRequest buildSearchRequest(Map<String,String> map)
map - the mapcom.fasterxml.jackson.core.JsonGenerationException - the json generation exceptioncom.fasterxml.jackson.databind.JsonMappingException - the json mapping exceptionIOException - Signals that an I/O exception has occurred.public static com.fasterxml.jackson.databind.JsonNode setJsonToJsonTree(String strJson)
strJson - the str jsonCopyright © 2017 City of Paris. All rights reserved.