Vespa: Is it possible to aggregate on nested fields?

In a search definition, fields within a structure cannot have attribute indexing.

http://docs.vespa.ai/documentation/reference/search-definitions-reference.html#field_types

In addition, the structure and maps are not attributes by default. An effective search definition will look something like this:

struct nlp {
  field token type string {
      match: text //can't add indexing here
  }
}

field n type nlp {
      indexing: summary //can't add attribute here
}

How to add a search definition so that we can group "n.token"? Can I add an attribute or index for structure fields? Or group by fields that are not attributes?

+4
source share
2 answers

, .

@jkb , , , ( )?

, ( ), , , ? , , - ?

"x" : [
    object: { attributes},
    object: {attributes}
 ]
+1

Source: https://habr.com/ru/post/1688101/


All Articles