Hi, My documents have an "aliases" field which is an array of string. When I query that field, ES scores each matching alias and uses the sum of these scores to calculate the document's score. However, I would like to use the max of these scores. I don't care if a document has many aliases matching my query. I want to know what document has the one alias that best matches my query.
Is there any easy way to accomplish this? Do I need to use a function score query (if so, please gibe me some implementation hints). Thanks! -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/3a0e2c8f-8cfb-479b-9599-b7d95254af6f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.