vespa-engine / vespa

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

Add support for text match search on a parent imported field #12333

Open Eshcar opened 4 years ago

Eshcar commented 4 years ago

Parent-child construct is a very helpful building block, where an information that is common to many documents is stored in a single parent document, and is accessible by all children document. A similar feature also exists in ElasticSearch.

In general a search on a child document can be filtered based on values in the parent document that are imported to the child. One pitfall is not supporting text match filtering as only attribute fields can be imported from the parent.

Limitations of imported parent fields are as follows:

We would like to suggest adding support for text indexing and search also at the parent document. This could be helpful for a recommendation system we are developing, but can be useful for many other applications that use vespa as their search and storage system.

jobergum commented 4 years ago

Thank you for a well written feature request @Eshcar.