# Does ES use a pure Apache Lucene?

**URL:** https://discuss.elastic.co/t/does-es-use-a-pure-apache-lucene/161064
**Category:** Elasticsearch
**Created:** [December 17, 2018, 2:52am UTC](https://discuss.elastic.co/t/does-es-use-a-pure-apache-lucene/161064 "2018-12-17T02:52:25Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![0ctopus13prime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/0ctopus13prime/32/51088_2.png) [@0ctopus13prime](https://discuss.elastic.co/u/0ctopus13prime)
#### Post date: [December 17, 2018, 2:52am UTC](https://discuss.elastic.co/t/does-es-use-a-pure-apache-lucene/161064/1 "2018-12-17T02:52:26Z")

</div>

Does ES use a pure Apache Lucene without any customizations?

I plan to run ES on the top of the customized Lucene (Method signitures remain, some magic numbers will be touched)

I wondering if Elasticsearch is able to run on that modified version of Lucene

Thanks for your answers in advance!

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [December 17, 2018, 6:46am UTC](https://discuss.elastic.co/t/does-es-use-a-pure-apache-lucene/161064/2 "2018-12-17T06:46:12Z")

</div>

What are you looking to achieve?

---

<div class="post-metadata">

### Author: ![0ctopus13prime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/0ctopus13prime/32/51088_2.png) [@0ctopus13prime](https://discuss.elastic.co/u/0ctopus13prime)
#### Post date: [December 26, 2018, 2:16am UTC](https://discuss.elastic.co/t/does-es-use-a-pure-apache-lucene/161064/3 "2018-12-26T02:16:57Z")

</div>

As I said, I'm trying to modify a little bit inside Lucene and make ES run with it.

For example implementing native (Ex BulkOperation) and linking it with JNI  
And some magic numbers (Buffer size, etc)

So the purpose of this trial is to make Lucene more fit for our use case.

In order to achieve this I need to make sure ES is running on Pure Apache Lucene so that I can switch customized version of Lucene silently

Thank you

---

<div class="post-metadata">

### Author: ![xeraa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xeraa/32/48181_2.png) [@xeraa](https://discuss.elastic.co/u/xeraa)
#### Post date: [December 26, 2018, 2:34am UTC](https://discuss.elastic.co/t/does-es-use-a-pure-apache-lucene/161064/4 "2018-12-26T02:34:05Z")

</div>

Plain Lucene. [https://github.com/elastic/elasticsearch/blob/e9ef5bdce83f466b019a59f81186ecee0dd4bd29/server/build.gradle#L84-L99](https://github.com/elastic/elasticsearch/blob/e9ef5bdce83f466b019a59f81186ecee0dd4bd29/server/build.gradle#L84-L99) should be your starting point (though it might not be the only one).

---

<div class="post-metadata">

### Author: ![0ctopus13prime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/0ctopus13prime/32/51088_2.png) [@0ctopus13prime](https://discuss.elastic.co/u/0ctopus13prime)
#### Post date: [December 26, 2018, 7:18am UTC](https://discuss.elastic.co/t/does-es-use-a-pure-apache-lucene/161064/5 "2018-12-26T07:18:59Z")

</div>

Thank you for the answer!

---

<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: [January 23, 2019, 7:19am UTC](https://discuss.elastic.co/t/does-es-use-a-pure-apache-lucene/161064/6 "2019-01-23T07:19:09Z")

</div>

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