spring - Is there a way to persist a field in Elasticsearch but not in mongodb?
问题描述
I am using both elasticsearch and mongodb in my project. I am looking for functionality similar to using @Transient, in the sense that the field should not persisted in mongodb, but can be in elasticsearch.
Public class pojo{
@PersistInBothESAndMongo
String field1;
@PersistOnlyInES
String field2;
}
解决方案
推荐阅读
- apache-kafka - Kafka 滚动升级,更改 inter.broker.listener.name
- c - 'netif' 的 ESP32 存储大小未知,如何解决此错误?
- python - 根据其他两个列表在 Python 中创建列表?
- forms - 如何在颤动切换标签之前强制执行功能(验证)?
- javascript - 在类函数之间传输控制流 webdriverio
- tcp - netcat 监听器会在一段时间后停止?
- react-native - 如何在 SectionList 内的子引用上使用 measure 方法?
- python - 如何填充线条之间的区域
- spring-boot - Spring Boot War 文件未在 websphere 8.5 中运行
- java - ReactiveMongo 模板。计数忽略限制功能