Hi,
Let us say, I am indexing a bunch of podcasts in my Elasticsearch cluster:
Podcast:
- _id (keyword)
- email (keyword)
- webLink (keyword)
- rssLink (keyword)
- shortDescription (text)
- longDescription (text)
- artistIds (array of integers)
- imageLink (keyword)
- numEpisodes (integer)
I want to submit queries to select podcasts for a text query and optionally boost score based on presence of certain fields. For e.g., I'd like to boost scores if a podcast has a link, short Description or image.
For a faster execution, should I have hasWebLink
, hasShortDescription
and hasImageLink
fields or exists
clause for these fields.
I am wondering if having separate fields and setting index=True
for those would result in faster execution.
Thanks