简体   繁体   English

如何从CloudSearch获取所有方面

[英]How to fetch all the facets from cloudsearch

On cloudsearch we can fetch facet information by passing facets.FIELD parameter in query, but I want cloudsearch to return all the available (returnable) facets. 在cloudsearch上,我们可以通过在查询中传递facets.FIELD参数来获取方面信息,但是我希望cloudsearch返回所有可用(可返回)方面。 Is there a way we can do it? 有办法吗? I have many facets which have return enabled. 我有很多方面都启用了返回功能。

There is no way to retrieve facet information for all facets -- you must explicitly specify each facet you're interested in, eg to get the values for facets FOO and BAR, your query would specify: 无法检索所有构面的构面信息-您必须明确指定感兴趣的每个构面,例如,要获取构面FOO和BAR的值,查询将指定:

facet.FOO={}&facet.BAR={}

Here are the faceting docs if you haven't seen them: http://docs.aws.amazon.com/cloudsearch/latest/developerguide/faceting.html 如果您还没有看到这些文档,请参阅以下文档: http : //docs.aws.amazon.com/cloudsearch/latest/developerguide/faceting.html

I also want to make sure you're not confused about what 'return enabled' means. 我还想确保您对“启用返回”的含义不感到困惑。 That means a field can be included in search results and it is unrelated to facets. 这意味着字段可以包含在搜索结果中,并且与构面无关。 I'm guessing you meant that the fields are FacetEnabled. 我猜你的意思是这些字段是FacetEnabled。 You can read more about that at: http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html 您可以在以下网站上了解有关此内容的更多信息: http : //docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html

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

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