Part 9 · Production Query EngineChapter 30

Painless & Scripted Scoring

Cheap retrieval, small candidate set, expensive script. The other order is how you build a slow query.

The question
How do I add business logic to relevance?
The structure responsible
A restricted expression language over the base score

In this lab: Write a scoring script and watch the ranking, and the evaluation count, respond.

building the index…