# How can I expand query terms in Elasticsearch?

**URL:** https://discuss.elastic.co/t/how-can-i-expand-query-terms-in-elasticsearch/106451
**Category:** Elasticsearch
**Created:** [November 6, 2017, 1:20am UTC](https://discuss.elastic.co/t/how-can-i-expand-query-terms-in-elasticsearch/106451 "2017-11-06T01:20:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Taek\_Hyung\_Kim](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/taek_hyung_kim/32/23831_2.png) [@Taek\_Hyung\_Kim](https://discuss.elastic.co/u/Taek_Hyung_Kim)
#### Post date: [November 6, 2017, 1:20am UTC](https://discuss.elastic.co/t/how-can-i-expand-query-terms-in-elasticsearch/106451/1 "2017-11-06T01:20:37Z")

</div>

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!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [December 4, 2017, 1:21am UTC](https://discuss.elastic.co/t/how-can-i-expand-query-terms-in-elasticsearch/106451/2 "2017-12-04T01:21:09Z")

</div>

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