# Extract key phrases for given sentence from elastic search

**URL:** https://discuss.elastic.co/t/extract-key-phrases-for-given-sentence-from-elastic-search/160795
**Category:** Elasticsearch
**Created:** [December 13, 2018, 5:57pm UTC](https://discuss.elastic.co/t/extract-key-phrases-for-given-sentence-from-elastic-search/160795 "2018-12-13T17:57:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![vnykrk](https://avatars.discourse-cdn.com/v4/letter/v/c57346/32.png) [@vnykrk](https://discuss.elastic.co/u/vnykrk)
#### Post date: [December 13, 2018, 5:57pm UTC](https://discuss.elastic.co/t/extract-key-phrases-for-given-sentence-from-elastic-search/160795/1 "2018-12-13T17:57:19Z")

</div>

hello

I need help with indexing/query for below use case

I have list of "keyphrases" like below which will go into elastic search index.  
[//e.g](https://e.g). Keyphrases to index: "beautiful place for summer" "travel destination for winter" "travel destination" "beautiful place"

The user query string would be a sentence which could be super set of key-phrases  
[//e.g](https://e.g). Query String input: "beautiful place this summer in newyork"

[//e.g](https://e.g) Expected output should be: "beautiful place for summer", "beautiful place"

Please help me with curl query, so I can test out on mac.

---

<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: [January 10, 2019, 5:57pm UTC](https://discuss.elastic.co/t/extract-key-phrases-for-given-sentence-from-elastic-search/160795/2 "2019-01-10T17:57:20Z")

</div>

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