Skip to content

Commit

Permalink
[Remove] Type query (#2448)
Browse files Browse the repository at this point in the history
Signed-off-by: Suraj Singh <surajrider@gmail.com>
  • Loading branch information
dreamer-89 authored Mar 15, 2022
1 parent 2b68b14 commit 02d000c
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 259 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,6 @@ public <T extends MetadataFieldMapper> T metadataMapper(Class<T> type) {
return mapping.metadataMapper(type);
}

public IndexFieldMapper indexMapper() {
return metadataMapper(IndexFieldMapper.class);
}

public TypeFieldMapper typeMapper() {
return metadataMapper(TypeFieldMapper.class);
}

public SourceFieldMapper sourceMapper() {
return metadataMapper(SourceFieldMapper.class);
}
Expand Down
158 changes: 0 additions & 158 deletions server/src/main/java/org/opensearch/index/query/TypeQueryBuilder.java

This file was deleted.

2 changes: 0 additions & 2 deletions server/src/main/java/org/opensearch/search/SearchModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@
import org.opensearch.index.query.TermQueryBuilder;
import org.opensearch.index.query.TermsQueryBuilder;
import org.opensearch.index.query.TermsSetQueryBuilder;
import org.opensearch.index.query.TypeQueryBuilder;
import org.opensearch.index.query.WildcardQueryBuilder;
import org.opensearch.index.query.WrapperQueryBuilder;
import org.opensearch.index.query.functionscore.ExponentialDecayFunctionBuilder;
Expand Down Expand Up @@ -1183,7 +1182,6 @@ private void registerQueryParsers(List<SearchPlugin> plugins) {
registerQuery(
new QuerySpec<>(SimpleQueryStringBuilder.NAME, SimpleQueryStringBuilder::new, SimpleQueryStringBuilder::fromXContent)
);
registerQuery(new QuerySpec<>(TypeQueryBuilder.NAME, TypeQueryBuilder::new, TypeQueryBuilder::fromXContent));
registerQuery(new QuerySpec<>(ScriptQueryBuilder.NAME, ScriptQueryBuilder::new, ScriptQueryBuilder::fromXContent));
registerQuery(new QuerySpec<>(GeoDistanceQueryBuilder.NAME, GeoDistanceQueryBuilder::new, GeoDistanceQueryBuilder::fromXContent));
registerQuery(
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,6 @@ public List<RescorerSpec<?>> getRescorers() {
"term",
"terms",
"terms_set",
"type",
"wildcard",
"wrapper",
"distance_feature" };
Expand Down

0 comments on commit 02d000c

Please sign in to comment.