Created
August 15, 2020 10:35
-
-
Save sergio11/b2ff0506de0ebe9edcb4d4eb6b159abb to your computer and use it in GitHub Desktop.
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
@Data | |
@EqualsAndHashCode(callSuper = false) | |
@AllArgsConstructor | |
@NoArgsConstructor | |
@Document(indexName = "tweets_processed") | |
public class TweetEntity { | |
@Id | |
@Field(type = FieldType.Long) | |
private Long id; | |
/** | |
* Create At | |
*/ | |
@Field(type = FieldType.Date, format = DateFormat.basic_date_time) | |
private Date createdAt; | |
/** | |
* Tweet Lang | |
*/ | |
@Field(type = FieldType.Text) | |
private String lang; | |
/** | |
* Favorite Count | |
*/ | |
@Field(type = FieldType.Integer) | |
private Integer favoriteCount; | |
/** | |
* Retweet Count | |
*/ | |
@Field(type = FieldType.Integer) | |
private Integer retweetCount; | |
/** | |
* Text | |
*/ | |
@Field(type = FieldType.Text) | |
private String text; | |
/** | |
* GeoLocation Latitude | |
*/ | |
@Field(type = FieldType.Double) | |
private Double geoLocationLatitude; | |
/** | |
* GeoLocation Longitude | |
*/ | |
@Field(type = FieldType.Double) | |
private Double geoLocationLongitude; | |
/** | |
* Sentiment Label | |
*/ | |
@Field(type = FieldType.Text) | |
private String sentimentLabel; | |
/** | |
* Sentiment Value | |
*/ | |
@Field(type = FieldType.Integer) | |
private Integer sentimentValue; | |
/** | |
* Tokens And NER Tags | |
*/ | |
@Field(type = FieldType.Text) | |
private String tokensAndNERTags; | |
/** | |
* Entity Mention List | |
*/ | |
@Field(type = FieldType.Flattened, includeInParent = true) | |
private List<EntityMentionEntity> entityMentionList; | |
/** | |
* User | |
*/ | |
@Field(type = FieldType.Nested, includeInParent = true) | |
private UserEntity user; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment