Spring 升级后 Cassandra 分面不工作
我已将 Spring 从1.5.2 升级到2.5.5,因此 Cassandra 也得到了升级。
我正在使用 Cassandra 存储库并编写本机查询。
升级之前,以下查询在 facet_fields 列中提供数据,但升级后,我在 reference 列
@Query(select reference from tablename where solr_query= '{“q”:“日期:[2020-06-01T04:00:00Z 至 2020-06-05T03:59:59Z]”, "facet":{"field" : "reference"}}')
我已经在 datastax 中执行了上述查询,我只在 facet_field 列下获取值,但是,从应用程序它正在参考下。
我确信这是由于春季升级造成的,有人可以让我知道解决方案或任何替代方案吗?
提前致谢。
I have upgraded Spring from 1.5.2 to 2.5.5 so the Cassandra is also got upgraded.
I am using Cassandra Repository and writing native queries.
before upgrading, the below query was giving the data in facet_fields column but after upgrading I am getting data in reference column
@Query(select reference from tablename where solr_query='{"q": "date:[2020-06-01T04:00:00Z TO 2020-06-05T03:59:59Z] " , "facet":{"field" : "reference"}}')
I have executed the above query in datastax there I am getting the value under facet_field column only but, from application it is coming under reference.
I am sure this is due to spring upgradation, could anyone please let me know the solution or any alternative for this?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这个问题已经解决了。经过大量研发后,没有发现任何与此相关的内容。因此,我已经在代码本身中处理了这种情况。
This issue has been resolved. After doing lot of R&D I did not found anything related to this. So, I have handled this scenario in code itself.