Complete the code to create an Elasticsearch index named 'products'.
PUT /[1]The index name should be 'products' to match the task requirement.
Complete the query to search for documents where the field 'name' matches 'laptop'.
{ "query": { "match": { "[1]": "laptop" } } }The field to search is 'name' as specified in the task.
Fix the error in the query to filter documents with price greater than 100.
{ "query": { "range": { "price": { "[1]": 100 } } } }Use 'gt' to filter for prices greater than 100.
Fill both blanks to create a dictionary comprehension that maps words to their lengths only if length is greater than 3.
{word: [1] for word in words if [2](word) > 3}The value is the length of the word using len(word), and the condition uses len(word) > 3.
Fill all three blanks to create a dictionary comprehension that maps uppercase keys to values only if value is greater than 0.
result = { [1]: [2] for [3], [2] in data.items() if [2] > 0 }Keys are converted to uppercase with k.upper(), values are v, and the loop variables are k and v.