# Advice needed: tagging and searching a RIVER

**URL:** https://discuss.elastic.co/t/advice-needed-tagging-and-searching-a-river/4783
**Category:** Elasticsearch
**Created:** [July 5, 2011, 10:09pm UTC](https://discuss.elastic.co/t/advice-needed-tagging-and-searching-a-river/4783 "2011-07-05T22:09:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![derrickburns](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@derrickburns](https://discuss.elastic.co/u/derrickburns)
#### Post date: [July 5, 2011, 10:09pm UTC](https://discuss.elastic.co/t/advice-needed-tagging-and-searching-a-river/4783/1 "2011-07-05T22:09:20Z")

</div>

I'd like to annotate (or tag) each incoming document with a set of  
\<name/value\> pairs. Later, I'd like to search on the names. I'd like  
to aggregate the results into facets. When I search, I'd like to score  
each document using the values embedded in the name/value pairs. Then,  
I'd like to get ALL documents matching a query along with their custom  
scores, sum the scores up per facet, and return the aggregate score  
per facet. Occasionally, I may retag the documents, i.e. change the  
set of name/value pairs associated with all documents.

My document set will be VERY large, but the documents themselves will  
be small.

What is the best way of accomplishing this feat with ElasticSearch?

---

<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 6, 2017, 4:01am UTC](https://discuss.elastic.co/t/advice-needed-tagging-and-searching-a-river/4783/2 "2017-07-06T04:01:41Z")

</div>


