AWS CloudSearch在文字数组上搜索

时间:2016-12-13 08:07:10

标签: arrays search literals amazon-cloudsearch

我正在项目中使用AWS CloudSearch。除了在文字数组上搜索术语之外,我可以用它制作我需要的所有东西。例如:

想象一下图书信息的域名。想象一下名为book_types的文字数组索引。我希望获得book_types索引上具有特定类型的所有书籍(我正在使用HTTP请求)。我尝试了以下但没有成功:

xxx.cloudsearch.amazonaws.com/2013-01-01/search?q.parser=structured&q=(and(term+field%3Dbook_types+%27Thriller%27))&size=1

xxx.cloudsearch.amazonaws.com/2013-01-01/search?q.parser=structured&q=(and(prefix+field%3Dbook_types+%27Thriller%27))&size=1

xxx.cloudsearch.amazonaws.com/2013-01-01/search?q.parser=structured&q=(and(phrase+field%3Dbook_types+%27Thriller%27))&size=1

我在搜索文字索引方面取得了成功,但每次搜索文字数组索引时都无法获得任何结果。

我们如何构建HTTP请求以从文字数组索引中获取结果?

0 个答案:

没有答案