Skip to content

Commit

Permalink
remove IndexAnalyzer from Builder
Browse files Browse the repository at this point in the history
Signed-off-by: Mingshi Liu <[email protected]>
  • Loading branch information
mingshl committed Apr 6, 2023
1 parent 1f2206a commit 543755f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -627,34 +627,6 @@ teardown:
- match: { error.root_cause.0.reason: "Mapping definition for [data] has unsupported parameters: [analyzer : standard]"}
- match: { status: 400 }

# - do:
# index:
# index: test_analyzer
# id: 1
# body: {
# "data": {
# "text": "Lucene in Action",
# }
# }
#
# - do:
# catch: bad_request
# search:
# body: {
# _source: true,
# query: {
# "match": {
# "data": "action lucene"
# }
# }
# }
#
# - match: { ... }
#
# - do:
# indices.delete:
# index: test_analyzer

# Wildcard Query with dot path.
- do:
catch: bad_request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,23 +99,17 @@ public FlatObjectField(String field, BytesRef term, FieldType ft) {

}

private static FlatObjectFieldMapper toType(FieldMapper in) {
return (FlatObjectFieldMapper) in;
}

/**
* The builder for the flat_object field mapper using default parameters
* @opensearch.internal
*/
public static class Builder extends FieldMapper.Builder<Builder> {


public Builder(String name) {
super(name, Defaults.FIELD_TYPE);
builder = this;
}


private FlatObjectFieldType buildFlatObjectFieldType(BuilderContext context, FieldType fieldType) {
return new FlatObjectFieldType(buildFullName(context), fieldType);
}
Expand Down

0 comments on commit 543755f

Please sign in to comment.