The term
-query (and filter) does not do any text analysis.
The match
-query does, and can achieve what you want.
I adapted the example: https://found.no/play/gist/2de967d844c5fbc14d2f
Setting explain
to true
is very useful when working with problems like this, as you see exactly what Lucene is doing when it's scoring.