# How to change Lucene version?

**URL:** <https://discuss.elastic.co/t/how-to-change-lucene-version/305959>\
**Category:** Elasticsearch\
**Created:** [May 30, 2022, 1:03pm UTC](https://discuss.elastic.co/t/how-to-change-lucene-version/305959 "2022-05-30T13:03:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Seo](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@Seo](https://discuss.elastic.co/u/Seo)\
**Post date:** [May 30, 2022, 1:03pm UTC](https://discuss.elastic.co/t/how-to-change-lucene-version/305959/1 "2022-05-30T13:03:15Z")

</div>

Hello.  
I have some questions about Lucene version.

1. Are there any methods to change version of Lucene without change of Elasticsearch version?
2. I want to apply the modified Lucene code(without version change) to my Elasticsearch. Is it possible?  
Please let me know how to do it if there is a way.

Is it completely impossible?  
Thank you.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 30, 2022, 1:41pm UTC](https://discuss.elastic.co/t/how-to-change-lucene-version/305959/2 "2022-05-30T13:41:25Z")

</div>

Why would you do such a thing?

---

<div class="post-metadata">

**Author:** ![Seo](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@Seo](https://discuss.elastic.co/u/Seo)\
**Post date:** [May 30, 2022, 2:19pm UTC](https://discuss.elastic.co/t/how-to-change-lucene-version/305959/3 "2022-05-30T14:19:38Z")

</div>

I want to modify the Lucene's indexing method for test and apply it to Elasticsearch.  
I don't have a detailed idea, so I can't say it clearly yet.  
But I just want to know before I start if it's possible.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 30, 2022, 2:28pm UTC](https://discuss.elastic.co/t/how-to-change-lucene-version/305959/4 "2022-05-30T14:28:59Z")

</div>

You should do that from Elasticsearch source code then.  
Modify your Lucene code, and update the dependency in Elasticsearch.

Have a look at this PR as an example of what could be needed:

> <https://github.com/elastic/elasticsearch/pull/86852>
>
> Final (hopefully!) snapshot before the 9.2.0 release

---

<div class="post-metadata">

**Author:** ![Seo](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@Seo](https://discuss.elastic.co/u/Seo)\
**Post date:** [May 31, 2022, 12:29am UTC](https://discuss.elastic.co/t/how-to-change-lucene-version/305959/5 "2022-05-31T00:29:48Z")

</div>

Thank you very much. I'll try it.

---

<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:** [June 28, 2022, 12:30am UTC](https://discuss.elastic.co/t/how-to-change-lucene-version/305959/6 "2022-06-28T00:30:11Z")

</div>

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