# Extract a term from a column in elasticsearch nest

**URL:** <https://discuss.elastic.co/t/extract-a-term-from-a-column-in-elasticsearch-nest/77264>\
**Category:** Elasticsearch\
**Created:** [March 3, 2017, 5:54am UTC](https://discuss.elastic.co/t/extract-a-term-from-a-column-in-elasticsearch-nest/77264 "2017-03-03T05:54:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nilanjana](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nilanjana/32/15965_2.png) [@nilanjana](https://discuss.elastic.co/u/nilanjana)\
**Post date:** [March 3, 2017, 5:54am UTC](https://discuss.elastic.co/t/extract-a-term-from-a-column-in-elasticsearch-nest/77264/1 "2017-03-03T05:54:02Z")

</div>

I have a field in a class called Employee

```
public class Employee
    {

              public string Description { set; get; }

    }

```

Now the Description is column which is extracted from a csv file. The content of description looks like :

```
Contact Name/Number:

Is the Tool unable to process now due to this issue? [Y/N]:

PC Name/IP address:

Total Link Impacted:

Any other available Link? [Y/N]:

LOTID: DE456YUI

Operation:

```

Impacted Factory Product:  
Now I need to extract the LOTID number i.e DE456YUI . How do I extract this "DE456YUI" ? from a column ? I am using elasticsearch version 1.4 and nest version 1.4 . I have tried with .search function but that doesnt do search inside field contents specially when you have a line/tags inside a column like this. Please suggest what can be done.

---

<div class="post-metadata">

**Author:** ![ywelsch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ywelsch/32/7751_2.png) [@ywelsch](https://discuss.elastic.co/u/ywelsch)\
**Post date:** [March 3, 2017, 1:23pm UTC](https://discuss.elastic.co/t/extract-a-term-from-a-column-in-elasticsearch-nest/77264/2 "2017-03-03T13:23:09Z")

</div>

I see that you've posted [exactly the same question on stackoverflow](http://stackoverflow.com/questions/42571457/extract-a-term-from-a-column-in-elasticsearch-nest) without any cross-linking. Stop that.

---

<div class="post-metadata">

**Author:** ![nilanjana](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nilanjana/32/15965_2.png) [@nilanjana](https://discuss.elastic.co/u/nilanjana)\
**Post date:** [March 3, 2017, 4:59pm UTC](https://discuss.elastic.co/t/extract-a-term-from-a-column-in-elasticsearch-nest/77264/3 "2017-03-03T16:59:49Z")

</div>

well this is not the answer certainly and definitely not a suggestion either. Thanks for letting me know anyways!

---

<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:** [March 31, 2017, 5:00pm UTC](https://discuss.elastic.co/t/extract-a-term-from-a-column-in-elasticsearch-nest/77264/4 "2017-03-31T17:00:14Z")

</div>

Closed on March 31, 2017, 5:00pm UTC

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