public class ElasticsearchSingleDocumentSearchIndex extends ElasticSearchSearchIndexBase
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
AGGREGATION_NAME_PATTERN |
static String |
CONFIG_PROPERTY_NAME_VISIBILITIES_STORE |
static Class<? extends PropertyNameVisibilitiesStore> |
DEFAULT_PROPERTY_NAME_VISIBILITIES_STORE |
static Pattern |
PROPERTY_NAME_PATTERN |
ELEMENT_TYPE, ELEMENT_TYPE_FIELD_NAME, EXACT_MATCH_PROPERTY_NAME_SUFFIX, GEO_PROPERTY_NAME_SUFFIX, MAX_BATCH_COUNT, MAX_BATCH_SIZE, MUTATION_LOGGER, VISIBILITY_FIELD_NAME| Constructor and Description |
|---|
ElasticsearchSingleDocumentSearchIndex(org.vertexium.Graph graph,
org.vertexium.GraphConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(org.vertexium.Graph graph,
org.vertexium.Element element,
org.vertexium.Authorizations authorizations) |
void |
addElementToBulkRequest(org.vertexium.Graph graph,
org.elasticsearch.action.bulk.BulkRequest bulkRequest,
IndexInfo indexInfo,
org.vertexium.Element element,
org.vertexium.Authorizations authorizations) |
protected void |
addPropertyDefinitionToIndex(org.vertexium.Graph graph,
IndexInfo indexInfo,
String propertyName,
org.vertexium.PropertyDefinition propertyDefinition) |
void |
addPropertyToIndex(org.vertexium.Graph graph,
IndexInfo indexInfo,
org.vertexium.Property property) |
protected void |
addPropertyToIndex(org.vertexium.Graph graph,
IndexInfo indexInfo,
String propertyName,
Class dataType,
boolean analyzed,
Double boost,
boolean sortable) |
protected String |
deflatePropertyName(org.vertexium.Graph graph,
org.vertexium.Property property) |
void |
deleteElement(org.vertexium.Graph graph,
org.vertexium.Element element,
org.vertexium.Authorizations authorizations) |
String |
getAggregationName(String name) |
String[] |
getAllMatchingPropertyNames(org.vertexium.Graph graph,
String propertyName,
org.vertexium.Authorizations authorizations) |
protected boolean |
getDefaultAllFieldEnabled() |
org.vertexium.PropertyDefinition |
getPropertyDefinition(org.vertexium.Graph graph,
String propertyName) |
String |
getPropertyVisibilityHashFromDeflatedPropertyName(String deflatedPropertyName) |
Collection<String> |
getQueryablePropertyNames(org.vertexium.Graph graph,
boolean includeNonStringFields,
org.vertexium.Authorizations authorizations) |
org.vertexium.SearchIndexSecurityGranularity |
getSearchIndexSecurityGranularity() |
Map<Object,Long> |
getVertexPropertyCountByValue(org.vertexium.Graph graph,
String propertyName,
org.vertexium.Authorizations authorizations) |
protected String |
inflatePropertyName(String string) |
boolean |
isFieldLevelSecuritySupported() |
protected boolean |
isStoreSourceData() |
org.vertexium.query.GraphQuery |
queryGraph(org.vertexium.Graph graph,
String queryString,
org.vertexium.Authorizations authorizations) |
org.vertexium.query.SimilarToGraphQuery |
querySimilarTo(org.vertexium.Graph graph,
String[] similarToFields,
String similarToText,
org.vertexium.Authorizations authorizations) |
org.vertexium.query.VertexQuery |
queryVertex(org.vertexium.Graph graph,
org.vertexium.Vertex vertex,
String queryString,
org.vertexium.Authorizations authorizations) |
void |
shutdown() |
addElements, addPropertiesToIndex, addPropertyDefinition, addPropertyValueToPropertiesMap, addTypeToMapping, convertGeoCircle, convertGeoCircle, convertGeoPoint, convertGeoPoint, createIndex, createIndexAddFieldsToElementType, createIndexInfo, deflatePropertyName, deflatePropertyName, deleteProperty, deleteProperty, doBulkRequest, drop, ensureIndexCreatedAndInitialized, ensureMappingsCreated, flush, getAllPropertyDefinitions, getClient, getConfig, getIndexName, getIndexNames, getIndexNamesAsArray, getIndexSelectionStrategy, getIndicesToQuery, isAllFieldEnabled, isAuthorizationFilterEnabled, isFieldBoostSupported, isPropertyDefined, isQuerySimilarToTextSupported, isReservedFieldName, loadIndexInfos, loadPropertyDefinitions, queryGraph, shouldIgnoreType, truncatepublic static final Pattern PROPERTY_NAME_PATTERN
public static final Pattern AGGREGATION_NAME_PATTERN
public static final String CONFIG_PROPERTY_NAME_VISIBILITIES_STORE
public static final Class<? extends PropertyNameVisibilitiesStore> DEFAULT_PROPERTY_NAME_VISIBILITIES_STORE
public ElasticsearchSingleDocumentSearchIndex(org.vertexium.Graph graph,
org.vertexium.GraphConfiguration config)
public void shutdown()
shutdown in interface org.vertexium.search.SearchIndexshutdown in class ElasticSearchSearchIndexBaseprotected boolean isStoreSourceData()
isStoreSourceData in class ElasticSearchSearchIndexBaseprotected boolean getDefaultAllFieldEnabled()
getDefaultAllFieldEnabled in class ElasticSearchSearchIndexBasepublic void addElement(org.vertexium.Graph graph,
org.vertexium.Element element,
org.vertexium.Authorizations authorizations)
addElement in interface org.vertexium.search.SearchIndexaddElement in class ElasticSearchSearchIndexBaseprotected String deflatePropertyName(org.vertexium.Graph graph, org.vertexium.Property property)
deflatePropertyName in class ElasticSearchSearchIndexBaseprotected String inflatePropertyName(String string)
inflatePropertyName in class ElasticSearchSearchIndexBasepublic String getPropertyVisibilityHashFromDeflatedPropertyName(String deflatedPropertyName)
getPropertyVisibilityHashFromDeflatedPropertyName in class ElasticSearchSearchIndexBasepublic String getAggregationName(String name)
getAggregationName in class ElasticSearchSearchIndexBasepublic String[] getAllMatchingPropertyNames(org.vertexium.Graph graph, String propertyName, org.vertexium.Authorizations authorizations)
getAllMatchingPropertyNames in class ElasticSearchSearchIndexBasepublic Collection<String> getQueryablePropertyNames(org.vertexium.Graph graph, boolean includeNonStringFields, org.vertexium.Authorizations authorizations)
public void deleteElement(org.vertexium.Graph graph,
org.vertexium.Element element,
org.vertexium.Authorizations authorizations)
deleteElement in interface org.vertexium.search.SearchIndexdeleteElement in class ElasticSearchSearchIndexBasepublic org.vertexium.SearchIndexSecurityGranularity getSearchIndexSecurityGranularity()
getSearchIndexSecurityGranularity in interface org.vertexium.search.SearchIndexgetSearchIndexSecurityGranularity in class ElasticSearchSearchIndexBasepublic org.vertexium.query.GraphQuery queryGraph(org.vertexium.Graph graph,
String queryString,
org.vertexium.Authorizations authorizations)
queryGraph in interface org.vertexium.search.SearchIndexqueryGraph in class ElasticSearchSearchIndexBasepublic org.vertexium.query.VertexQuery queryVertex(org.vertexium.Graph graph,
org.vertexium.Vertex vertex,
String queryString,
org.vertexium.Authorizations authorizations)
queryVertex in interface org.vertexium.search.SearchIndexqueryVertex in class ElasticSearchSearchIndexBasepublic org.vertexium.query.SimilarToGraphQuery querySimilarTo(org.vertexium.Graph graph,
String[] similarToFields,
String similarToText,
org.vertexium.Authorizations authorizations)
querySimilarTo in interface org.vertexium.search.SearchIndexquerySimilarTo in class ElasticSearchSearchIndexBasepublic boolean isFieldLevelSecuritySupported()
protected void addPropertyDefinitionToIndex(org.vertexium.Graph graph,
IndexInfo indexInfo,
String propertyName,
org.vertexium.PropertyDefinition propertyDefinition)
throws IOException
addPropertyDefinitionToIndex in class ElasticSearchSearchIndexBaseIOExceptionpublic org.vertexium.PropertyDefinition getPropertyDefinition(org.vertexium.Graph graph,
String propertyName)
getPropertyDefinition in class ElasticSearchSearchIndexBasepublic void addPropertyToIndex(org.vertexium.Graph graph,
IndexInfo indexInfo,
org.vertexium.Property property)
throws IOException
addPropertyToIndex in class ElasticSearchSearchIndexBaseIOExceptionprotected void addPropertyToIndex(org.vertexium.Graph graph,
IndexInfo indexInfo,
String propertyName,
Class dataType,
boolean analyzed,
Double boost,
boolean sortable)
throws IOException
addPropertyToIndex in class ElasticSearchSearchIndexBaseIOExceptionpublic void addElementToBulkRequest(org.vertexium.Graph graph,
org.elasticsearch.action.bulk.BulkRequest bulkRequest,
IndexInfo indexInfo,
org.vertexium.Element element,
org.vertexium.Authorizations authorizations)
addElementToBulkRequest in class ElasticSearchSearchIndexBaseCopyright © 2014–2015. All rights reserved.