简体   繁体   English

在Grails中,如何在AWS CloudSearch中上传Java对象数组?

[英]In Grails how to upload java object arrays in aws cloudsearch?

In Grails(which provide complete set of plugins) also provide searchable plugin which is sufficient to do indexing and searching job. 在Grails(提供完整的插件集)中,还提供了可搜索的插件,足以完成索引和搜索工作。 Now since we are moving to AWS cloudsearch we have achieved how to search(based on lucene) any object. 现在,由于我们转向AWS cloudsearch,我们已经实现了如何搜索(基于lucene)任何对象。 Now I was getting error while uploading the documents(which is actually array of objects)? 现在我在上传文档(实际上是对象数组)时遇到错误? What is the best way to upload any array of object(java) which maps to the domain of the cloudsearch? 上传任何映射到cloudsearch域的object(java)数组的最佳方法是什么? This is to achieve the bulkupload from grails. 这是为了实现grails的bulkupload。

CloudSearch does not support objects. CloudSearch不支持对象。 It supports the following types, as well as arrays of each type (except latlon). 它支持以下类型,以及每种类型的数组(latlon除外)。

  • date 日期
  • double
  • int 整型
  • latlon 拉特隆
  • literal 文字
  • text 文本

Reference 参考

My team is switching to AWS Elasticsearch service for this and other reasons. 由于这个原因和其他原因,我的团队正在切换到AWS Elasticsearch服务。 CloudSearch hasn't seen an update since January, 2013 and there's no indication that they plan to make any updates or improvements to it. 自2013年1月以来,CloudSearch尚未看到任何更新,也没有迹象表明他们计划对其进行任何更新或改进。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM