# Comparing text between .raw and .keyword

**URL:** <https://discuss.elastic.co/t/comparing-text-between-raw-and-keyword/103230>\
**Category:** Elasticsearch\
**Created:** [October 9, 2017, 1:11pm UTC](https://discuss.elastic.co/t/comparing-text-between-raw-and-keyword/103230 "2017-10-09T13:11:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tarp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tarp/32/51884_2.png) [@tarp](https://discuss.elastic.co/u/tarp)\
**Post date:** [October 9, 2017, 1:11pm UTC](https://discuss.elastic.co/t/comparing-text-between-raw-and-keyword/103230/1 "2017-10-09T13:11:43Z")

</div>

Hi,

I'm working on an aggregation of Queue statistics data. The data that I'm feeding in is from a log file that filebeat sends to and ingestion pipeline. The field queue, is a text field that comes in and gets assigned queue.raw for use in visualizations. I have created an aggregation script that builds a new index based on aggregating the queue data by hour, day, or whatever. However, that data when visualizing it shows up with queue.keyword.  
I created an index alias so I can pull both the current and aggregate data together for a single visualization.  
For example, I look at the MAX queue depth over time by queue. But the Aggregate uses queue.keyword and the real time data uses queue.raw. So how do I fix this so they will both have the same field suffix?

Thanks,  
Tim

---

<div class="post-metadata">

**Author:** ![tarp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tarp/32/51884_2.png) [@tarp](https://discuss.elastic.co/u/tarp)\
**Post date:** [October 13, 2017, 4:28pm UTC](https://discuss.elastic.co/t/comparing-text-between-raw-and-keyword/103230/2 "2017-10-13T16:28:30Z")

</div>

I think my filebeat ingest templates are old. I forced an update to them and will check the next day to see if this brings them up to the new way of doing .keyword instead of .raw.

---

<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:** [November 10, 2017, 4:29pm UTC](https://discuss.elastic.co/t/comparing-text-between-raw-and-keyword/103230/3 "2017-11-10T16:29:04Z")

</div>

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