public class SearchService extends EvrythngServiceBase
/search endpoints of the EVRYTHNG Engine API.| Modifier and Type | Field and Description |
|---|---|
static String |
PATH_SEARCH |
static String |
QP_CUSTOM_FIELDS |
static String |
QP_IDENTIFIERS |
static String |
QP_LATITUDE
Deprecated.
since 1.16 - use
LatQueryParamValue instead |
static String |
QP_LONGITUDE
Deprecated.
since 1.16 - use
LonQueryParamValue instead |
static String |
QP_MAX_DISTANCE
Deprecated.
since 1.16 - use
MaxDistQueryParamValue instead |
static String |
QP_PROPERTIES |
static String |
QP_SEARCH_ALL
Deprecated.
since 1.16 - use
QSearchQueryParamValue instead. |
static String |
QP_TAGS
Deprecated.
since 1.16 - use
TagsQueryParamValue
instead. |
static String |
QP_TYPES
Deprecated.
since 1.16 - use
TypesQueryParamValue instead. |
| Constructor and Description |
|---|
SearchService(ApiManager apiManager) |
| Modifier and Type | Method and Description |
|---|---|
EvrythngApiBuilder.Builder<GlobalSearchResult> |
fieldSearch(EnumSet<EvrythngType> types)
Searches evrythng entities using criteria for specific fields.
|
EvrythngApiBuilder.Builder<GlobalSearchResult> |
fieldSearch(EvrythngType type) |
EvrythngApiBuilder.Builder<GlobalSearchResult> |
geoSearch(EnumSet<EvrythngType> types,
double latitude,
double longitude,
double maxDistance)
Performs a geo-location based search.
|
EvrythngApiBuilder.Builder<GlobalSearchResult> |
geoSearch(EvrythngType type,
double latitude,
double longitude,
double maxDistance) |
static String |
qpCustomField(String customFieldName)
Creates the query parameter name for a custom field.
|
static String |
qpIdentifier(String identifierName)
Creates the query parameter name for an identifier.
|
static String |
qpProperty(String propertyName)
Creates the query parameter name for a property name.
|
EvrythngApiBuilder.Builder<GlobalSearchResult> |
search(EnumSet<EvrythngType> types,
String searchText)
Searches evrythng entities using a string search criterion.
|
EvrythngApiBuilder.Builder<GlobalSearchResult> |
search(EvrythngType type) |
EvrythngApiBuilder.Builder<GlobalSearchResult> |
search(EvrythngType type,
String searchText) |
absoluteUri, delete, deleteMultiple, encodeBase64, get, getConfig, iterator, mqttUrl, onBuilderCreated, post, post, postAsynchronously, postMultipart, postMultipart, put, put, putMultipart, putMultipart, putMultiple, urlEncodePathPartpublic static final String PATH_SEARCH
@Deprecated public static final String QP_SEARCH_ALL
QSearchQueryParamValue instead.@Deprecated public static final String QP_TYPES
TypesQueryParamValue instead.public static final String QP_IDENTIFIERS
public static final String QP_CUSTOM_FIELDS
@Deprecated public static final String QP_TAGS
TagsQueryParamValue
instead.public static final String QP_PROPERTIES
@Deprecated public static final String QP_LATITUDE
LatQueryParamValue instead@Deprecated public static final String QP_LONGITUDE
LonQueryParamValue instead@Deprecated public static final String QP_MAX_DISTANCE
MaxDistQueryParamValue insteadpublic SearchService(ApiManager apiManager)
public EvrythngApiBuilder.Builder<GlobalSearchResult> search(EnumSet<EvrythngType> types, String searchText) throws EvrythngClientException
types - The entity types to search for.searchText - The search criterion.EvrythngClientExceptionpublic EvrythngApiBuilder.Builder<GlobalSearchResult> search(EvrythngType type, String searchText) throws EvrythngClientException
type - The entity type to search for.searchText - The search criterion.EvrythngClientExceptionsearch(EnumSet, String)public EvrythngApiBuilder.Builder<GlobalSearchResult> search(EvrythngType type) throws EvrythngClientException
type - The entity type to search for.EvrythngClientExceptionsearch(EnumSet, String)public EvrythngApiBuilder.Builder<GlobalSearchResult> fieldSearch(EnumSet<EvrythngType> types) throws EvrythngClientException
types - The entity types to search for.EvrythngClientExceptionQP_CUSTOM_FIELDS,
QP_PROPERTIES,
QP_TAGS,
qpCustomField(String),
qpProperty(String)public EvrythngApiBuilder.Builder<GlobalSearchResult> fieldSearch(EvrythngType type) throws EvrythngClientException
type - The entity type to search for.EvrythngClientExceptionfieldSearch(EnumSet)public EvrythngApiBuilder.Builder<GlobalSearchResult> geoSearch(EnumSet<EvrythngType> types, double latitude, double longitude, double maxDistance) throws EvrythngClientException
types - The entity types to search for.latitude - The latitude in degrees.longitude - The longitude in degrees.maxDistance - The maximal distance in kilometers to search.EvrythngClientExceptionpublic EvrythngApiBuilder.Builder<GlobalSearchResult> geoSearch(EvrythngType type, double latitude, double longitude, double maxDistance) throws EvrythngClientException
type - The entity type to search for.latitude - The latitude in degrees.longitude - The longitude in degrees.maxDistance - The maximal distance in kilometers to search.EvrythngClientExceptiongeoSearch(EnumSet, double, double, double)public static String qpIdentifier(String identifierName)
identifierName - The identifier name, for example "ean" or "upc".public static String qpCustomField(String customFieldName)
customFieldName - The custom field name, for example "ean" or "upc".Copyright © 2016 EVRYTHNG Ltd London / Zurich. All rights reserved.