我正在项目中使用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请求以从文字数组索引中获取结果?