For my Application Need to get a Wikipedia Page based on a List of Weighted Keywords(Sometimes this List can contain only 1 Word).
It is Critical for my application that the first Result be the most Relevant Document.
For this purpose I decided to use Elasticsearch.
So I indexed Wikipedia Following this instructions:
My Approach so far is to use query's based On the following Scheme:
GET /_search?explain=true
{
"size": 3,
"query": {
"multi_match": {
"query": "(United States)^5.6",
"fields": [
"text",
"title^3",
"redirect^2"
],
"phrase_slop": 2,
"type": "cross_fields",
"use_dis_max": true
}
}
}
}
My Problem is the Following: The First Result of the query is "These United States" which is a rock
band.
So my Questions Are :
How Can i Change my Query so "United States" is the First Result.
And is Using multi march Query the Suitable Approach for my needs ?