vespa-engine / vespa

AI + Data, online. https://vespa.ai
https://vespa.ai
Apache License 2.0
5.77k stars 602 forks source link

Exclude fields in a document summary #31794

Open bratseth opened 4 months ago

bratseth commented 4 months ago

If you have lots of summary-enabled fields and you want a summary containing most, but not all of them (e.g not vectors), you need to repeat lots of field names. It would be convenient if there was a way to define a summary by inheriting another (default) and then exclude some of them.

baldersheim commented 3 months ago

I am not sure that we should tempt more usage of default summary class. I think it is better to guide usage towards making the summary classes explicit. Once people want something non-default, they have to do that anyway. And then it is better to build on your own by adding fields through inheritance, rather than exclude.

nehajatav commented 3 weeks ago

Templating language like ftl to generate schema files have helped in this area