Fix #7562: Fix search suggest for soft-deleted entities (#7563)

This commit is contained in:
Sriharsha Chintalapani 2022-09-19 17:22:23 -07:00 committed by GitHub
parent 33ecb3dd80
commit 9b35547fa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
21 changed files with 597 additions and 451 deletions

View File

@ -389,7 +389,10 @@ class ElasticsearchSink(Sink[Entity]):
service_suggest.append({"input": [table.service.name], "weight": 5})
database_suggest.append({"input": [database_entity.name.__root__], "weight": 5})
schema_suggest.append(
{"input": [database_schema_entity.name.__root__], "weight": 5}
{
"input": [database_schema_entity.name.__root__],
"weight": 5,
}
)
self._parse_columns(
table.columns, None, column_names, column_descriptions, tags

View File

@ -89,7 +89,7 @@ DASHBOARD_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -126,7 +126,7 @@ DASHBOARD_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -163,7 +163,7 @@ DASHBOARD_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -205,7 +205,7 @@ DASHBOARD_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
}
},
"deleted": {
"type": "boolean"
"type": "text"
},
"followers": {
"type": "keyword"
@ -255,7 +255,14 @@ DASHBOARD_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
"type": "keyword"
},
"suggest": {
"type": "completion"
"type": "completion",
"contexts": [
{
"name": "deleted",
"type": "category",
"path": "deleted"
}
]
},
"chart_suggest": {
"type": "completion"

View File

@ -78,7 +78,7 @@ GLOSSARY_TERM_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -115,7 +115,7 @@ GLOSSARY_TERM_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -152,7 +152,7 @@ GLOSSARY_TERM_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -189,7 +189,7 @@ GLOSSARY_TERM_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -219,13 +219,20 @@ GLOSSARY_TERM_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
}
},
"deleted": {
"type": "boolean"
"type": "text"
},
"status": {
"type": "text"
},
"suggest": {
"type": "completion"
"type": "completion",
"contexts": [
{
"name": "deleted",
"type": "category",
"path": "deleted"
}
]
}
}
}

View File

@ -128,7 +128,7 @@ MLMODEL_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -178,7 +178,7 @@ MLMODEL_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -215,7 +215,7 @@ MLMODEL_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -257,7 +257,7 @@ MLMODEL_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
}
},
"deleted": {
"type": "boolean"
"type": "text"
},
"followers": {
"type": "keyword"
@ -307,7 +307,14 @@ MLMODEL_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
"type": "keyword"
},
"suggest": {
"type": "completion"
"type": "completion",
"contexts": [
{
"name": "deleted",
"type": "category",
"path": "deleted"
}
]
},
"service_suggest": {
"type": "completion"

View File

@ -108,7 +108,7 @@ PIPELINE_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -145,7 +145,7 @@ PIPELINE_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -153,7 +153,7 @@ PIPELINE_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
}
},
"deleted": {
"type": "boolean"
"type": "text"
},
"followers": {
"type": "keyword"
@ -203,7 +203,14 @@ PIPELINE_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
"type": "keyword"
},
"suggest": {
"type": "completion"
"type": "completion",
"contexts": [
{
"name": "deleted",
"type": "category",
"path": "deleted"
}
]
},
"task_suggest": {
"type": "completion"

View File

@ -14,379 +14,400 @@ import textwrap
TABLE_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
"""
{
"mappings":{
"properties": {
"id": {
"type": "text"
},
"name": {
"type":"text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"fullyQualifiedName": {
"type":"text"
},
"displayName": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"description": {
"type": "text",
"index_options": "docs",
"norms": false
},
"version": {
"type": "float"
},
"updatedAt": {
"type": "date",
"format": "epoch_second"
},
"updatedBy": {
"type": "text"
},
"href": {
"type": "text"
},
"columns": {
"properties": {
"name": {
"type": "text"
},
"dataType": {
"type": "text"
},
"dataTypeDisplay": {
"type": "text"
},
"description": {
"type": "text",
"index_options": "docs",
"norms": false
},
"fullyQualifiedName": {
"type": "text"
},
"tags": {
"properties": {
"tagFQN": {
"type": "keyword"
},
"labelType": {
"type": "keyword"
},
"description": {
"type": "text"
},
"source": {
"type": "keyword"
},
"state": {
"type": "keyword"
}
}
},
"ordinalPosition": {
"type": "integer"
}
}
},
"databaseSchema": {
"properties": {
"id": {
"type": "keyword",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 36
}
}
},
"type": {
"type": "text"
},
"name": {
"type": "keyword",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"fullyQualifiedName": {
"type": "text"
},
"description": {
"type": "text"
},
"deleted": {
"type": "boolean"
},
"href": {
"type": "text"
}
}
},
"database": {
"properties": {
"id": {
"type": "keyword",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 36
}
}
},
"type": {
"type": "keyword"
},
"name": {
"type": "keyword",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"fullyQualifiedName": {
"type": "text"
},
"description": {
"type": "text"
},
"deleted": {
"type": "boolean"
},
"href": {
"type": "text"
}
}
},
"service": {
"properties": {
"id": {
"type": "keyword",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 36
}
}
},
"type": {
"type": "keyword"
},
"name": {
"type": "keyword",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"fullyQualifiedName": {
"type": "text"
},
"description": {
"type": "text"
},
"deleted": {
"type": "boolean"
},
"href": {
"type": "text"
}
}
},
"owner": {
"properties": {
"id": {
"type": "keyword",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 36
}
}
},
"type": {
"type": "keyword"
},
"name": {
"type": "keyword",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"fullyQualifiedName": {
"type": "text"
},
"description": {
"type": "text"
},
"deleted": {
"type": "boolean"
},
"href": {
"type": "text"
}
}
},
"location": {
"properties": {
"id": {
"type": "keyword",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 36
}
}
},
"type": {
"type": "keyword"
},
"name": {
"type": "keyword",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"fullyQualifiedName": {
"type": "text"
},
"description": {
"type": "text"
},
"deleted": {
"type": "boolean"
},
"href": {
"type": "text"
}
}
},
"usageSummary": {
"properties": {
"dailyStats": {
"properties": {
"count": {
"type": "long"
},
"percentileRank": {
"type": "long"
}
}
},
"weeklyStats": {
"properties": {
"count": {
"type": "long"
},
"percentileRank": {
"type": "long"
}
}
},
"monthlyStats": {
"properties": {
"count": {
"type": "long"
},
"percentileRank": {
"type": "long"
}
}
}
}
},
"deleted": {
"type": "boolean"
},
"followers": {
"type": "keyword"
},
"tier": {
"properties": {
"tagFQN": {
"type": "keyword"
},
"labelType": {
"type": "keyword"
},
"description": {
"type": "text"
},
"source": {
"type": "keyword"
},
"state": {
"type": "keyword"
}
}
},
"tags": {
"properties": {
"tagFQN": {
"type": "keyword"
},
"labelType": {
"type": "keyword"
},
"description": {
"type": "text"
},
"source": {
"type": "keyword"
},
"state": {
"type": "keyword"
}
}
},
"serviceType": {
"type": "keyword"
},
"entityType": {
"type": "keyword"
},
"suggest": {
"type": "completion"
},
"column_suggest": {
"type": "completion"
},
"schema_suggest": {
"type": "completion"
},
"database_suggest": {
"type": "completion"
},
"service_suggest": {
"type": "completion"
}
}
"settings": {
"analysis": {
"normalizer": {
"lowercase_normalizer": {
"type": "custom",
"char_filter": [],
"filter": [
"lowercase"
]
}
}
}
}
},
"mappings": {
"properties": {
"id": {
"type": "text"
},
"name": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"fullyQualifiedName": {
"type": "keyword",
"normalizer": "lowercase_normalizer"
},
"displayName": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"description": {
"type": "text",
"index_options": "docs",
"norms": false
},
"version": {
"type": "float"
},
"updatedAt": {
"type": "date",
"format": "epoch_second"
},
"updatedBy": {
"type": "text"
},
"href": {
"type": "text"
},
"columns": {
"properties": {
"name": {
"type": "text"
},
"dataType": {
"type": "text"
},
"dataTypeDisplay": {
"type": "text"
},
"description": {
"type": "text",
"index_options": "docs",
"norms": false
},
"fullyQualifiedName": {
"type": "text"
},
"tags": {
"properties": {
"tagFQN": {
"type": "keyword"
},
"labelType": {
"type": "keyword"
},
"description": {
"type": "text"
},
"source": {
"type": "keyword"
},
"state": {
"type": "keyword"
}
}
},
"ordinalPosition": {
"type": "integer"
}
}
},
"databaseSchema": {
"properties": {
"id": {
"type": "keyword",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 36
}
}
},
"type": {
"type": "text"
},
"name": {
"type": "keyword",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"fullyQualifiedName": {
"type": "text"
},
"description": {
"type": "text"
},
"deleted": {
"type": "text"
},
"href": {
"type": "text"
}
}
},
"database": {
"properties": {
"id": {
"type": "keyword",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 36
}
}
},
"type": {
"type": "keyword"
},
"name": {
"type": "keyword",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"fullyQualifiedName": {
"type": "text"
},
"description": {
"type": "text"
},
"deleted": {
"type": "text"
},
"href": {
"type": "text"
}
}
},
"service": {
"properties": {
"id": {
"type": "keyword",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 36
}
}
},
"type": {
"type": "keyword"
},
"name": {
"type": "keyword",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"fullyQualifiedName": {
"type": "text"
},
"description": {
"type": "text"
},
"deleted": {
"type": "text"
},
"href": {
"type": "text"
}
}
},
"owner": {
"properties": {
"id": {
"type": "keyword",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 36
}
}
},
"type": {
"type": "keyword"
},
"name": {
"type": "keyword",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"fullyQualifiedName": {
"type": "text"
},
"description": {
"type": "text"
},
"deleted": {
"type": "text"
},
"href": {
"type": "text"
}
}
},
"location": {
"properties": {
"id": {
"type": "keyword",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 36
}
}
},
"type": {
"type": "keyword"
},
"name": {
"type": "keyword",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"fullyQualifiedName": {
"type": "text"
},
"description": {
"type": "text"
},
"deleted": {
"type": "text"
},
"href": {
"type": "text"
}
}
},
"usageSummary": {
"properties": {
"dailyStats": {
"properties": {
"count": {
"type": "long"
},
"percentileRank": {
"type": "long"
}
}
},
"weeklyStats": {
"properties": {
"count": {
"type": "long"
},
"percentileRank": {
"type": "long"
}
}
},
"monthlyStats": {
"properties": {
"count": {
"type": "long"
},
"percentileRank": {
"type": "long"
}
}
}
}
},
"deleted": {
"type": "text"
},
"followers": {
"type": "keyword"
},
"tier": {
"properties": {
"tagFQN": {
"type": "keyword"
},
"labelType": {
"type": "keyword"
},
"description": {
"type": "text"
},
"source": {
"type": "keyword"
},
"state": {
"type": "keyword"
}
}
},
"tags": {
"properties": {
"tagFQN": {
"type": "keyword"
},
"labelType": {
"type": "keyword"
},
"description": {
"type": "text"
},
"source": {
"type": "keyword"
},
"state": {
"type": "keyword"
}
}
},
"serviceType": {
"type": "keyword"
},
"entityType": {
"type": "keyword"
},
"suggest": {
"type": "completion",
"contexts": [
{
"name": "deleted",
"type": "category",
"path": "deleted"
}
]
},
"column_suggest": {
"type": "completion"
},
"schema_suggest": {
"type": "completion"
},
"database_suggest": {
"type": "completion"
},
"service_suggest": {
"type": "completion"
}
}
}
}
"""
)

View File

@ -51,13 +51,20 @@ TAG_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"deprecated": {
"type": "boolean"
},
"suggest": {
"type": "completion"
"type": "completion",
"contexts": [
{
"name": "deleted",
"type": "category",
"path": "deleted"
}
]
}
}
}

View File

@ -75,7 +75,7 @@ TEAM_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -112,7 +112,7 @@ TEAM_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -123,13 +123,20 @@ TEAM_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"entityType": {
"type": "keyword"
},
"suggest": {
"type": "completion"
"type": "completion",
"contexts": [
{
"name": "deleted",
"type": "category",
"path": "deleted"
}
]
}
}
}

View File

@ -104,7 +104,7 @@ TOPIC_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -141,7 +141,7 @@ TOPIC_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -149,7 +149,7 @@ TOPIC_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
}
},
"deleted": {
"type": "boolean"
"type": "text"
},
"followers": {
"type": "keyword"
@ -199,7 +199,14 @@ TOPIC_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
"type": "keyword"
},
"suggest": {
"type": "completion"
"type": "completion",
"contexts": [
{
"name": "deleted",
"type": "category",
"path": "deleted"
}
]
},
"service_suggest": {
"type": "completion"

View File

@ -78,7 +78,7 @@ USER_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -115,7 +115,7 @@ USER_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -152,7 +152,7 @@ USER_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -160,13 +160,20 @@ USER_ELASTICSEARCH_INDEX_MAPPING = textwrap.dedent(
}
},
"deleted": {
"type": "boolean"
"type": "text"
},
"entityType": {
"type": "keyword"
},
"suggest": {
"type": "completion"
"type": "completion",
"contexts": [
{
"name": "deleted",
"type": "category",
"path": "deleted"
}
]
}
}
}

View File

@ -1,5 +1,6 @@
package org.openmetadata.service.elasticsearch;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
@ -177,6 +178,7 @@ public class ElasticSearchIndexDefinition {
}
}
@JsonInclude(JsonInclude.Include.NON_NULL)
@Jacksonized
@Getter
@Builder

View File

@ -25,6 +25,7 @@ import io.swagger.v3.oas.annotations.media.Content;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import java.io.IOException;
import java.util.Collections;
import java.util.concurrent.TimeUnit;
import javax.ws.rs.DefaultValue;
import javax.ws.rs.GET;
@ -53,6 +54,7 @@ import org.elasticsearch.search.suggest.Suggest;
import org.elasticsearch.search.suggest.SuggestBuilder;
import org.elasticsearch.search.suggest.SuggestBuilders;
import org.elasticsearch.search.suggest.completion.CompletionSuggestionBuilder;
import org.elasticsearch.search.suggest.completion.context.CategoryQueryContext;
import org.openmetadata.schema.api.configuration.elasticsearch.ElasticSearchConfiguration;
import org.openmetadata.service.util.ElasticSearchClientUtils;
@ -225,11 +227,17 @@ public class SearchResource {
@javax.ws.rs.QueryParam("q")
String query,
@DefaultValue("table_search_index") @javax.ws.rs.QueryParam("index") String index,
@DefaultValue("suggest") @javax.ws.rs.QueryParam("field") String fieldName)
@DefaultValue("suggest") @javax.ws.rs.QueryParam("field") String fieldName,
@DefaultValue("false") @javax.ws.rs.QueryParam("deleted") String deleted)
throws IOException {
SearchRequest searchRequest = new SearchRequest(index);
SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder();
CompletionSuggestionBuilder suggestionBuilder = SuggestBuilders.completionSuggestion(fieldName).prefix(query);
if (fieldName.equalsIgnoreCase("suggest")) {
suggestionBuilder.contexts(
Collections.singletonMap(
"deleted", Collections.singletonList(CategoryQueryContext.builder().setCategory(deleted).build())));
}
SuggestBuilder suggestBuilder = new SuggestBuilder();
suggestBuilder.addSuggestion("metadata-suggest", suggestionBuilder);
searchSourceBuilder.suggest(suggestBuilder);

View File

@ -88,7 +88,7 @@
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -125,7 +125,7 @@
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -162,7 +162,7 @@
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -204,7 +204,7 @@
}
},
"deleted": {
"type": "boolean"
"type": "text"
},
"followers": {
"type": "keyword"
@ -238,7 +238,14 @@
"type": "keyword"
},
"suggest": {
"type": "completion"
"type": "completion",
"contexts": [
{
"name": "deleted",
"type": "category",
"path": "deleted"
}
]
},
"chart_suggest": {
"type": "completion"

View File

@ -88,7 +88,7 @@
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -125,7 +125,7 @@
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -162,7 +162,7 @@
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -199,7 +199,7 @@
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -229,13 +229,20 @@
}
},
"deleted": {
"type": "boolean"
"type": "text"
},
"status": {
"type": "text"
},
"suggest": {
"type": "completion"
"type": "completion",
"contexts": [
{
"name": "deleted",
"type": "category",
"path": "deleted"
}
]
}
}
}

View File

@ -127,7 +127,7 @@
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -177,7 +177,7 @@
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -214,7 +214,7 @@
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -256,7 +256,7 @@
}
},
"deleted": {
"type": "boolean"
"type": "text"
},
"followers": {
"type": "keyword"
@ -290,7 +290,14 @@
"type": "keyword"
},
"suggest": {
"type": "completion"
"type": "completion",
"contexts": [
{
"name": "deleted",
"type": "category",
"path": "deleted"
}
]
},
"service_suggest": {
"type": "completion"

View File

@ -107,7 +107,7 @@
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -144,7 +144,7 @@
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -152,7 +152,7 @@
}
},
"deleted": {
"type": "boolean"
"type": "text"
},
"followers": {
"type": "keyword"
@ -186,7 +186,14 @@
"type": "keyword"
},
"suggest": {
"type": "completion"
"type": "completion",
"contexts": [
{
"name": "deleted",
"type": "category",
"path": "deleted"
}
]
},
"task_suggest": {
"type": "completion"

View File

@ -130,7 +130,7 @@
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -167,7 +167,7 @@
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -204,7 +204,7 @@
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -241,7 +241,7 @@
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -278,7 +278,7 @@
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -320,7 +320,7 @@
}
},
"deleted": {
"type": "boolean"
"type": "text"
},
"followers": {
"type": "keyword"
@ -370,7 +370,14 @@
"type": "keyword"
},
"suggest": {
"type": "completion"
"type": "completion",
"contexts": [
{
"name": "deleted",
"type": "category",
"path": "deleted"
}
]
},
"column_suggest": {
"type": "completion"

View File

@ -59,10 +59,17 @@
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"suggest": {
"type": "completion"
"type": "completion",
"contexts": [
{
"name": "deleted",
"type": "category",
"path": "deleted"
}
]
}
}
}

View File

@ -65,7 +65,7 @@
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -102,7 +102,7 @@
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -113,13 +113,20 @@
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"entityType": {
"type": "keyword"
},
"suggest": {
"type": "completion"
"type": "completion",
"contexts": [
{
"name": "deleted",
"type": "category",
"path": "deleted"
}
]
}
}
}

View File

@ -103,7 +103,7 @@
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -140,7 +140,7 @@
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -148,7 +148,7 @@
}
},
"deleted": {
"type": "boolean"
"type": "text"
},
"followers": {
"type": "keyword"
@ -182,7 +182,14 @@
"type": "keyword"
},
"suggest": {
"type": "completion"
"type": "completion",
"contexts": [
{
"name": "deleted",
"type": "category",
"path": "deleted"
}
]
},
"service_suggest": {
"type": "completion"

View File

@ -74,7 +74,7 @@
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -111,7 +111,7 @@
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -148,7 +148,7 @@
"type": "text"
},
"deleted": {
"type": "boolean"
"type": "text"
},
"href": {
"type": "text"
@ -156,7 +156,7 @@
}
},
"deleted": {
"type": "boolean"
"type": "text"
},
"entityType": {
"type": "keyword"