-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Needed for LI internally where datasets for legacy reasons did not use "doc" as the doc type. Note for ES7 doc types are no longer a concept and so this API is only needed in 5.
- Loading branch information
John Plaisted
authored
Jan 26, 2021
1 parent
f13da1c
commit 3a33b2f
Showing
4 changed files
with
37 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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 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 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
26 changes: 26 additions & 0 deletions
26
...ch-dao-integ-testing/src/main/java/com/linkedin/metadata/testing/annotations/DocType.java
This file contains 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.linkedin.metadata.testing.annotations; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
|
||
/** | ||
* Indicates the document type used for the documents in this index. | ||
* | ||
* <p>Optional parameter for {@link com.linkedin.metadata.testing.SearchIndex}es in tests. | ||
* | ||
* <p>Primarily a work around for LinkedIn internally, where Datasets are old and did not set the doc type to "doc". | ||
* | ||
* <p>Also note that doctypes as a whole are deprecated in ES7, so this annotation is not carried forward to the ES7 | ||
* framework. | ||
*/ | ||
@Target(ElementType.FIELD) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface DocType { | ||
/** | ||
* The document type. | ||
*/ | ||
String value(); | ||
} |