Bird
0
0

You wrote this highlight section but no highlights appear:

medium📝 Debug Q6 of 15
Elasticsearch - Search Results and Scoring
You wrote this highlight section but no highlights appear:
"highlight": {"fields": {"summary": {"type": "plain"}}}

What is a likely cause?
AHighlighting only works on numeric fields.
BThe highlight type plain is invalid and causes failure.
CYou must specify pre_tags and post_tags for highlights to work.
DThe field summary is not stored or indexed for highlighting.
Step-by-Step Solution
Solution:
  1. Step 1: Check field indexing and storage

    Highlighting requires the field to be stored or indexed with term vectors.
  2. Step 2: Evaluate other options

    Type plain is valid, tags are optional, and highlighting does not work on numeric fields.
  3. Final Answer:

    The field summary is not stored or indexed for highlighting. -> Option D
  4. Quick Check:

    Highlight needs stored/indexed text field [OK]
Quick Trick: Ensure field is stored/indexed for highlighting [OK]
Common Mistakes:
MISTAKES
  • Assuming highlight type plain is invalid
  • Forgetting to store or index the field
  • Thinking tags are mandatory

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes