# Evaluating Elasticsearch for document classification with keywords

**URL:** <https://discuss.elastic.co/t/evaluating-elasticsearch-for-document-classification-with-keywords/38969>\
**Category:** Elasticsearch\
**Created:** [January 12, 2016, 11:20am UTC](https://discuss.elastic.co/t/evaluating-elasticsearch-for-document-classification-with-keywords/38969 "2016-01-12T11:20:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![greensheep](https://avatars.discourse-cdn.com/v4/letter/g/ac8455/32.png) [@greensheep](https://discuss.elastic.co/u/greensheep)\
**Post date:** [January 12, 2016, 11:20am UTC](https://discuss.elastic.co/t/evaluating-elasticsearch-for-document-classification-with-keywords/38969/1 "2016-01-12T11:20:10Z")

</div>

Hello,

I’m new to elasticsearch and evaluating it for use in my project where I need to compare a large set of keywords (currently around 3500) against documents (on average around 500 words long) and highlight any matches that occur.

The keywords I have are mostly specialised technical terms and the documents are unstructured natural language text.

Basically, I want to end up with the document text, modified with highlighted keyword matches, plus a separate array of the matched keywords that I can display as a simple list. I think the best way to describe what I’m trying to achieve is a document classification system.

Things I’d be interested to know are:

- Is Elasticsearch a suitable tool for this kind of use case?
- If it is, are there any specific features or configurations I’ll need to look into?
- What kind of performance I can expect - eg, can I do this sort of thing on demand or will it require a background task?

I realise these questions are quite broad but I’d really appreciate any pointers.

Thanks!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 14, 2016, 6:45am UTC](https://discuss.elastic.co/t/evaluating-elasticsearch-for-document-classification-with-keywords/38969/2 "2016-01-14T06:45:28Z")

</div>

You can use [Percolator](https://www.elastic.co/guide/en/elasticsearch/reference/2.1/search-percolate.html) for this!

---

<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:** [July 5, 2017, 11:24pm UTC](https://discuss.elastic.co/t/evaluating-elasticsearch-for-document-classification-with-keywords/38969/3 "2017-07-05T23:24:42Z")

</div>


