简体   繁体   English

父子模式:如何通过文本/字符串类型的子文档字段搜索文档

[英]parent-child mode: How to search document by child document field with text/string type

Seems that only attribute field can be imported.似乎只能导入属性字段。

Besides, fields of struct can only be attribute indexing mode.另外struct的字段只能是属性索引方式。

So how can I implement function in vespa like the nested query (text field) in elasticsearch那么我如何在 vespa 中实现 function,就像 elasticsearch 中的嵌套查询(文本字段)一样

Parent-child relationships in Vespa are implemented by indexing all parent documents on all nodes in the cluster. Vespa 中的父子关系是通过索引集群中所有节点上的所有父文档来实现的。 These are global documents.这些是全球文件。

For performance reasons, fields imported from a parent document type must be defined as attribute , which also dictates the type of matching that is supported.出于性能原因,从父文档类型导入的字段必须定义为attribute ,这也规定了支持的匹配类型。 Similar restrictions apply for struct fields, regardless of using parent-child relationships.无论使用父子关系如何,类似的限制都适用于结构字段。 See https://github.com/vespa-engine/vespa/issues/12333 for a feature request on supporting different match modes for imported fields from parent document types.有关支持从父文档类型导入字段的不同匹配模式的功能请求,请参阅https://github.com/vespa-engine/vespa/issues/12333

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

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