[Control Relevance] How to boost doc contains specific keywords?

You can boost certain words by separating out the words into separate should clauses of a bool query and giving them individual boosts, for example:

{
  "query": {
    "bool": {
      "must": [
        { "match": { "field": "description", "query": "how to find my RAM" } }
      ],
      "should": [
        {
          "match": { "field": "description", "query": "RAM", "boost": 3 }
        },
        {
          "match": { "field": "description", "query": "find", "boost": 2 }
        }
      ]
    }
  }
}

Since you mentioned you can build a keyword list, then you can have your regular query in the must clause and boost particular terms with additional match queries in the should clause (with boosts).

Additionally, you could use the function_score query to do this, with the boost_factor function.