# Moving from custom Lucene code to Elastic - Frustrated

**URL:** <https://discuss.elastic.co/t/moving-from-custom-lucene-code-to-elastic-frustrated/50280>\
**Category:** Elasticsearch\
**Created:** [May 18, 2016, 2:15am UTC](https://discuss.elastic.co/t/moving-from-custom-lucene-code-to-elastic-frustrated/50280 "2016-05-18T02:15:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThomasD3](https://avatars.discourse-cdn.com/v4/letter/t/eb9ed0/32.png) [@ThomasD3](https://discuss.elastic.co/u/ThomasD3)\
**Post date:** [May 18, 2016, 2:15am UTC](https://discuss.elastic.co/t/moving-from-custom-lucene-code-to-elastic-frustrated/50280/1 "2016-05-18T02:15:47Z")

</div>

As I am totally new to the API, I find myself frustrated by the documentation and it doesn't help that all the samples you can find with google seem spread over 3 different incompatible versions of the API.

With Lucene, when indexing some properties, I could set them so that:

- The data gets analyzed, indexed and stored
- The data gets analyzed, indexed, but not stored
- The data get just stored; no analysis, no indexing

How can I do these 3 cases? I can't find any documentation that covers this, nor any complete sample / tutorial. Everything I got running so far was from some bits and pieces cobbled from various locations.

thanks!

---

<div class="post-metadata">

**Author:** ![Glen\_Smith](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/glen_smith/32/111656_2.png) [@Glen\_Smith](https://discuss.elastic.co/u/Glen_Smith)\
**Post date:** [May 18, 2016, 4:20am UTC](https://discuss.elastic.co/t/moving-from-custom-lucene-code-to-elastic-frustrated/50280/2 "2016-05-18T04:20:42Z")

</div>

index: [https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-index.html#mapping-index](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-index.html#mapping-index)  
store: [https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-store.html#mapping-store](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-store.html#mapping-store)

---

<div class="post-metadata">

**Author:** ![ThomasD3](https://avatars.discourse-cdn.com/v4/letter/t/eb9ed0/32.png) [@ThomasD3](https://discuss.elastic.co/u/ThomasD3)\
**Post date:** [May 18, 2016, 1:27pm UTC](https://discuss.elastic.co/t/moving-from-custom-lucene-code-to-elastic-frustrated/50280/3 "2016-05-18T13:27:46Z")

</div>

Thanks for these links! I am not sure why, but I couldn't find it with google, nor any link to that in any sample. I'm wondering if it's because it's a collection of tiny pages instead of a larger document so it may not be indexed.

Also, I was using this as a guide: [https://www.elastic.co/guide/en/elasticsearch/client/net-api/current/index.html](https://www.elastic.co/guide/en/elasticsearch/client/net-api/current/index.html)  
From this, I can't find the pages you sent me.

thanks again!

---

<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:50pm UTC](https://discuss.elastic.co/t/moving-from-custom-lucene-code-to-elastic-frustrated/50280/4 "2017-07-05T22:50:39Z")

</div>


