How can I expand query terms in Elasticsearch?

How can you expand query terms in Elasticsearch?
I am a beginner who just started using Elasticsearch.
I am studying a little through Googleing and the booklet, but I do not know much about it yet.
There are two questions.

  1. How can I apply ontology to Elasticsearch?

  2. When using the synonyms feature, can we apply different weights to words?
    For example, when you search for A, you want to give the weighted result of A 'and A "
    that are output in the order A> A'> A"!

Please answer. Thank you!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.