我们正在开发一个应用程序,它需要在搜索选项中填充tag参数,并使用来自cloudsearch(多值文字)中的tags字段的所有文字值。
tags字段是一个分面索引,我想获取其值而不在我的查询中定义q参数值。 这有可能吗?
We are developing an application that needs to populate the tag parameter in the search options with all the literal values from tags field in cloudsearch (multi-valued literals).
tags field is a faceted index that I would like to fetch its values without defining q parameter value in my query. Is that ever possible?
最满意答案
查询术语始终是必需的,但您可以使用matchall运算符和结构化解析器来匹配所有文档( docs ),例如
?q=matchall&q.parser=structured&facet.tags={}&size=0
这将为索引中所有文档的tags提供方面。
The query term is always required but you can use the matchall operator with the structured parser to match all documents (docs), eg
?q=matchall&q.parser=structured&facet.tags={}&size=0
That will give the facets for tags across all documents in your index.
更多推荐
发布评论