Martin Fenner
09/20/2021, 6:49 AMKishore Nallan
09/20/2021, 6:49 AMKishore Nallan
09/20/2021, 6:50 AMMartin Fenner
09/20/2021, 7:33 AMMartin Fenner
09/20/2021, 7:36 AMKishore Nallan
09/20/2021, 7:36 AMKishore Nallan
09/20/2021, 7:38 AMMartin Fenner
09/20/2021, 7:43 AMKishore Nallan
09/20/2021, 7:56 AMAndrew Sittermann
09/20/2021, 8:41 AMMartin Fenner
09/20/2021, 8:49 AMKishore Nallan
09/20/2021, 9:45 AMcreators
which is a nested object directly or query as creators.name
etc. which refer to primitive types.Martin Fenner
09/20/2021, 10:53 AMcreators.name
. This particular query is very common. So queries would be for primitive types. An edge case would be queries for creators.givenName
& creators.familyName
which Elasticsearch addresses with either nested fields (as you want givenName and familyName to belong to the same creator) or a combined field combining both values. I usually use the latter (this is for an index with more than 20 million records).Kishore Nallan
09/20/2021, 11:01 AMas you want givenName and familyName to belong to the same creatorYes, this is one tricky thing to handle when you flatten fields: you don't want to end up matching the first name of one person with last name of another.
Andrew Sittermann
09/29/2021, 3:04 PMKishore Nallan
09/29/2021, 3:05 PMAndrew Sittermann
09/30/2021, 4:39 PMKishore Nallan
09/30/2021, 4:42 PM