Skip to content

Commit

Permalink
remove QueryBuilders.typeQuery
Browse files Browse the repository at this point in the history
Signed-off-by: Nicholas Walter Knize <[email protected]>
  • Loading branch information
nknize committed Feb 17, 2022
1 parent 6fa10e0 commit 680c8b5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@
import static org.opensearch.index.query.QueryBuilders.spanWithinQuery;
import static org.opensearch.index.query.QueryBuilders.termQuery;
import static org.opensearch.index.query.QueryBuilders.termsQuery;
import static org.opensearch.index.query.QueryBuilders.typeQuery;
import static org.opensearch.index.query.QueryBuilders.wildcardQuery;
import static org.opensearch.index.query.QueryBuilders.wrapperQuery;
import static org.opensearch.index.query.functionscore.ScoreFunctionBuilders.exponentialDecayFunction;
Expand Down Expand Up @@ -447,12 +446,6 @@ public void testTerms() {
// end::terms
}

public void testType() {
// tag::type
typeQuery("my_type"); // <1>
// end::type
}

public void testWildcard() {
// tag::wildcard
wildcardQuery(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -610,15 +610,6 @@ public static WrapperQueryBuilder wrapperQuery(byte[] source) {
return new WrapperQueryBuilder(source);
}

/**
* A filter based on doc/mapping type.
* @deprecated Types are going away, prefer filtering on a field.
*/
@Deprecated
public static TypeQueryBuilder typeQuery(String type) {
return new TypeQueryBuilder(type);
}

/**
* A terms query that can extract the terms from another doc in an index.
*/
Expand Down

0 comments on commit 680c8b5

Please sign in to comment.