Bird
0
0

Identify the error in this multi-match query:

medium📝 Debug Q6 of 15
Elasticsearch - Basic Search Queries
Identify the error in this multi-match query:
{ "multi_match": { "query": "coffee", "field": ["title", "content"] } }
AThe fields array should be a string
BThe query string "coffee" is missing quotes
CThe parameter "field" should be "fields"
DThe multi_match key should be "match"
Step-by-Step Solution
Solution:
  1. Step 1: Check parameter names in multi-match

    The correct parameter for listing fields is "fields", not "field".
  2. Step 2: Verify other parts

    The query string is correctly quoted. "multi_match" is the correct key. Fields must be an array, not a string.
  3. Final Answer:

    The parameter "field" should be "fields" -> Option C
  4. Quick Check:

    Use "fields" not "field" in multi-match [OK]
Quick Trick: Use "fields" plural for field list in multi-match [OK]
Common Mistakes:
MISTAKES
  • Using "field" instead of "fields"
  • Removing quotes from query string
  • Changing multi_match to match

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes