-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Move flattened field to core. #68780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
bab6df4
Move flattened field to core.
jtibshirani f92c2f0
Fix alphabetization.
jtibshirani 012d937
Fold FlattenedFieldLookupTests into other test cases.
jtibshirani 303cfe9
Add skip version in REST tests.
jtibshirani 397630c
Fix checkstyle.
jtibshirani 42e2061
Fix out-of-date javadoc.
jtibshirani 5331dc7
Remove 'xpack' note in docs.
jtibshirani 3d7ccc7
Merge remote-tracking branch 'upstream/master' into flattened-fields
jtibshirani f56bfc7
Merge remote-tracking branch 'upstream/master' into flattened-fields
jtibshirani File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,3 @@ | ||
| [role="xpack"] | ||
| [testenv="basic"] | ||
|
|
||
| [[flattened]] | ||
| === Flattened field type | ||
| ++++ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
...lattened/mapper/FlattenedFieldMapper.java → ...apper/flattened/FlattenedFieldMapper.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
...lattened/mapper/FlattenedFieldParser.java → ...apper/flattened/FlattenedFieldParser.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
...d/mapper/KeyedFlattenedLeafFieldData.java → ...lattened/KeyedFlattenedLeafFieldData.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,6 +44,7 @@ | |
| import org.elasticsearch.index.mapper.SourceFieldMapper; | ||
| import org.elasticsearch.index.mapper.TextFieldMapper; | ||
| import org.elasticsearch.index.mapper.VersionFieldMapper; | ||
| import org.elasticsearch.index.mapper.flattened.FlattenedFieldMapper; | ||
| import org.elasticsearch.index.seqno.RetentionLeaseBackgroundSyncAction; | ||
| import org.elasticsearch.index.seqno.RetentionLeaseSyncAction; | ||
| import org.elasticsearch.index.seqno.RetentionLeaseSyncer; | ||
|
|
@@ -113,18 +114,21 @@ public static Map<String, Mapper.TypeParser> getMappers(List<MapperPlugin> mappe | |
| } | ||
| mappers.put(BooleanFieldMapper.CONTENT_TYPE, BooleanFieldMapper.PARSER); | ||
| mappers.put(BinaryFieldMapper.CONTENT_TYPE, BinaryFieldMapper.PARSER); | ||
| mappers.put(CompletionFieldMapper.CONTENT_TYPE, CompletionFieldMapper.PARSER); | ||
|
|
||
| DateFieldMapper.Resolution milliseconds = DateFieldMapper.Resolution.MILLISECONDS; | ||
| mappers.put(milliseconds.type(), DateFieldMapper.MILLIS_PARSER); | ||
| DateFieldMapper.Resolution nanoseconds = DateFieldMapper.Resolution.NANOSECONDS; | ||
| mappers.put(nanoseconds.type(), DateFieldMapper.NANOS_PARSER); | ||
|
|
||
| mappers.put(FieldAliasMapper.CONTENT_TYPE, new FieldAliasMapper.TypeParser()); | ||
| mappers.put(FlattenedFieldMapper.CONTENT_TYPE, FlattenedFieldMapper.PARSER); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here I added |
||
| mappers.put(GeoPointFieldMapper.CONTENT_TYPE, GeoPointFieldMapper.PARSER); | ||
| mappers.put(IpFieldMapper.CONTENT_TYPE, IpFieldMapper.PARSER); | ||
| mappers.put(TextFieldMapper.CONTENT_TYPE, TextFieldMapper.PARSER); | ||
| mappers.put(KeywordFieldMapper.CONTENT_TYPE, KeywordFieldMapper.PARSER); | ||
| mappers.put(ObjectMapper.CONTENT_TYPE, new ObjectMapper.TypeParser()); | ||
| mappers.put(ObjectMapper.NESTED_CONTENT_TYPE, new ObjectMapper.TypeParser()); | ||
| mappers.put(CompletionFieldMapper.CONTENT_TYPE, CompletionFieldMapper.PARSER); | ||
| mappers.put(FieldAliasMapper.CONTENT_TYPE, new FieldAliasMapper.TypeParser()); | ||
| mappers.put(GeoPointFieldMapper.CONTENT_TYPE, GeoPointFieldMapper.PARSER); | ||
| mappers.put(TextFieldMapper.CONTENT_TYPE, TextFieldMapper.PARSER); | ||
|
|
||
| for (MapperPlugin mapperPlugin : mapperPlugins) { | ||
| for (Map.Entry<String, Mapper.TypeParser> entry : mapperPlugin.getMappers().entrySet()) { | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Version change because some nodes may not have x-pack installed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These core REST tests generally do not run with x-pack installed. So I bumped the version here, and plan to adjust to cover 7.12 once it's backported.