RediSearch / redisearch-getting-started

A RediSearch tutorial to learn the basis of RediSearch module, with sample application in Java, Python and Node.js
https://redisearch.io
145 stars 36 forks source link

Integration with Spring boot #97

Closed vepidikiti closed 2 years ago

vepidikiti commented 2 years ago

Hi I have a question I am having a POJO Example:

@Data @AllArgsConstructor @NoArgsConstructor @Builder @RedisHash("User") public class UserEntity { @Id private UUID id;

private String userName;
@Indexed
private String email;

}

Question 1: Can I create a searchIndex with a pojo class declared above, if so is there an annotation?

Question 2: In order to create fields in I have to do searchConnection.sync().create(searchIndexName, ....fields); what if I want to give fields as dynamic i.e. user input fields does .create take list of feilds?