如何从AWS CloudSearch中的索引字段中获取所有文字值(How to fetch all the literal values from an index field in AWS Clou

编程入门 行业动态 更新时间:2024-10-28 08:26:09
如何从AWS CloudSearch中的索引字段中获取所有文字值(How to fetch all the literal values from an index field in AWS CloudSearch)

我们正在开发一个应用程序,它需要在搜索选项中填充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.

更多推荐

本文发布于:2023-07-04 16:48:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1026833.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:字段   索引   文字   CloudSearch   AWS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!