# Loading free form text into elasticsearch

**URL:** <https://discuss.elastic.co/t/loading-free-form-text-into-elasticsearch/59390>\
**Category:** Elasticsearch\
**Created:** [August 31, 2016, 5:51am UTC](https://discuss.elastic.co/t/loading-free-form-text-into-elasticsearch/59390 "2016-08-31T05:51:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AussiePete2015](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aussiepete2015/32/13407_2.png) [@AussiePete2015](https://discuss.elastic.co/u/AussiePete2015)\
**Post date:** [August 31, 2016, 5:51am UTC](https://discuss.elastic.co/t/loading-free-form-text-into-elasticsearch/59390/1 "2016-08-31T05:51:39Z")

</div>

I'd like to know if anyone has tried loading free form text into elasticsearch and if so what method was used.  
I'd like to load all SAS code into elasticsearch so that we can better answer customer questions about whether the code includes macros that attach to specific databases, whether there are drive letters included, what paths are used etc.  
I've just started on this journey and I've been loading basic scripts from examples and testing the search features and I can really see a benefit in being able to load source code.

Any ideas, suggestions, negative or otherwise welcome... this is a POC only at this stage.

Cheers  
Peter

---

<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:** [August 31, 2016, 10:11am UTC](https://discuss.elastic.co/t/loading-free-form-text-into-elasticsearch/59390/2 "2016-08-31T10:11:23Z")

</div>

> [@AussiePete2015](#):
>
> SAS code

What's that?

---

<div class="post-metadata">

**Author:** ![AussiePete2015](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aussiepete2015/32/13407_2.png) [@AussiePete2015](https://discuss.elastic.co/u/AussiePete2015)\
**Post date:** [August 31, 2016, 10:00pm UTC](https://discuss.elastic.co/t/loading-free-form-text-into-elasticsearch/59390/3 "2016-08-31T22:00:46Z")

</div>

Check this site out as it has an example SAS code

> **[Statistics - Institute for Digital Research and Education](https://stats.idre.ucla.edu/)**
>
> The IDRE mission is to support, advance and guide a campus-wide program to position UCLA as a world leader in research and education in computational thi...

Really what I'd like to do is bulk load all SAS code but more than that I'd like to be able to load any programming code.

Any help ideas appreciated.  
Cheers

---

<div class="post-metadata">

**Author:** ![mainec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mainec/32/5557_2.png) [@mainec](https://discuss.elastic.co/u/mainec)\
**Post date:** [September 1, 2016, 9:46am UTC](https://discuss.elastic.co/t/loading-free-form-text-into-elasticsearch/59390/4 "2016-09-01T09:46:43Z")

</div>

I think the following case study might answer your question:

[https://www.elastic.co/use-cases/github](https://www.elastic.co/use-cases/github)

tl;dr: Sure, you can search source code with Elasticsearch. The devil might hide in the details of how to configure analysis etc.

Hope this helps,  
Isabel

---

<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, 10:23pm UTC](https://discuss.elastic.co/t/loading-free-form-text-into-elasticsearch/59390/5 "2017-07-05T22:23:19Z")

</div>


