Package org.openmetadata.service.search
Class SearchRepository
java.lang.Object
org.openmetadata.service.search.SearchRepository
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Responsejavax.json.JsonObjectvoidcreateEntity(EntityInterface entity) voidcreateIndex(IndexMapping indexMapping) voidvoidvoidvoiddeleteEntity(EntityInterface entity) voiddeleteIndex(IndexMapping indexMapping) voiddeleteOrUpdateChildren(EntityInterface entity, IndexMapping indexMapping) voidgetIndexMapping(String entityType) getIndexOrAliasName(String name) getScriptWithParams(EntityInterface entity, Map<String, Object> fieldAddParams) getSortedDate(String team, Long scheduleTime, Long currentTime, DataInsightChartResult.DataInsightChartType chartType, String indexName) booleanindexExists(IndexMapping indexMapping) javax.ws.rs.core.ResponselistDataInsightChartResult(Long startTs, Long endTs, String tier, String team, DataInsightChartResult.DataInsightChartType dataInsightChartName, Integer size, Integer from, String queryFilter, String dataReportIndex) voidpropagateGlossaryTags(String entityType, String glossaryFQN, ChangeDescription changeDescription) voidpropagateInheritedFieldsToChildren(String entityType, String entityId, ChangeDescription changeDescription, IndexMapping indexMapping) javax.ws.rs.core.Responsesearch(SearchRequest request) javax.ws.rs.core.ResponsesearchByField(String fieldName, String fieldValue, String index) javax.ws.rs.core.ResponsesearchBySourceUrl(String sourceUrl) javax.ws.rs.core.ResponsesearchLineage(String fqn, int upstreamDepth, int downstreamDepth, String queryFilter, boolean deleted, String entityType) voidsoftDeleteOrRestoredChildren(EntityInterface entity, IndexMapping indexMapping, boolean delete) voidsoftDeleteOrRestoreEntity(EntityInterface entity, boolean delete) javax.ws.rs.core.Responsesuggest(SearchRequest request) voidupdateEntity(EntityInterface entity) voidupdateEntity(EntityReference entityReference) voidupdateIndex(IndexMapping indexMapping) void
-
Field Details
-
searchIndexFactory
-
dataInsightReports
-
ELASTIC_SEARCH_EXTENSION
- See Also:
-
-
Constructor Details
-
SearchRepository
-
-
Method Details
-
getSearchType
-
createIndexes
public void createIndexes() -
updateIndexes
public void updateIndexes() -
dropIndexes
public void dropIndexes() -
getIndexMapping
-
getIndexOrAliasName
-
indexExists
-
createIndex
-
updateIndex
-
deleteIndex
-
createEntity
-
createTimeSeriesEntity
-
updateEntity
-
updateEntity
-
propagateInheritedFieldsToChildren
public void propagateInheritedFieldsToChildren(String entityType, String entityId, ChangeDescription changeDescription, IndexMapping indexMapping) -
propagateGlossaryTags
public void propagateGlossaryTags(String entityType, String glossaryFQN, ChangeDescription changeDescription) -
deleteByScript
-
deleteEntity
-
softDeleteOrRestoreEntity
-
deleteOrUpdateChildren
-
softDeleteOrRestoredChildren
public void softDeleteOrRestoredChildren(EntityInterface entity, IndexMapping indexMapping, boolean delete) -
getScriptWithParams
-
search
- Throws:
IOException
-
searchBySourceUrl
- Throws:
IOException
-
searchLineage
public javax.ws.rs.core.Response searchLineage(String fqn, int upstreamDepth, int downstreamDepth, String queryFilter, boolean deleted, String entityType) throws IOException - Throws:
IOException
-
searchByField
public javax.ws.rs.core.Response searchByField(String fieldName, String fieldValue, String index) throws IOException - Throws:
IOException
-
aggregate
public javax.ws.rs.core.Response aggregate(String index, String fieldName, String value, String query) throws IOException - Throws:
IOException
-
aggregate
public javax.json.JsonObject aggregate(String query, String index, javax.json.JsonObject aggregationJson) throws IOException - Throws:
IOException
-
suggest
- Throws:
IOException
-
getSortedDate
public SortedMap<Long,List<Object>> getSortedDate(String team, Long scheduleTime, Long currentTime, DataInsightChartResult.DataInsightChartType chartType, String indexName) throws IOException, ParseException - Throws:
IOExceptionParseException
-
listDataInsightChartResult
public javax.ws.rs.core.Response listDataInsightChartResult(Long startTs, Long endTs, String tier, String team, DataInsightChartResult.DataInsightChartType dataInsightChartName, Integer size, Integer from, String queryFilter, String dataReportIndex) throws IOException, ParseException - Throws:
IOExceptionParseException
-