# Open elasticsearch shard with lucene .net

**URL:** <https://discuss.elastic.co/t/open-elasticsearch-shard-with-lucene-net/10614>\
**Category:** Elasticsearch\
**Created:** [February 4, 2013, 10:35am UTC](https://discuss.elastic.co/t/open-elasticsearch-shard-with-lucene-net/10614 "2013-02-04T10:35:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ophir\_Michaeli](https://avatars.discourse-cdn.com/v4/letter/o/9f8e36/32.png) [@Ophir\_Michaeli](https://discuss.elastic.co/u/Ophir_Michaeli)\
**Post date:** [February 4, 2013, 10:35am UTC](https://discuss.elastic.co/t/open-elasticsearch-shard-with-lucene-net/10614/1 "2013-02-04T10:35:50Z")

</div>

Hi,

Do you know if it is possible to open an elasticsearch shard (lucene 3.6.2)  
with c# code using lucene 3.0.3 for dot net (the newest version for dot  
net)?

I get the error "Unknown format version: -11".

Thanks,

Ophir

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Itamar\_Syn\_Hershko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/itamar_syn_hershko/32/725_2.png) [@Itamar\_Syn\_Hershko](https://discuss.elastic.co/u/Itamar_Syn_Hershko)\
**Post date:** [February 4, 2013, 10:57am UTC](https://discuss.elastic.co/t/open-elasticsearch-shard-with-lucene-net/10614/2 "2013-02-04T10:57:29Z")

</div>

No, you can't, the Lucene formats are incompatible

On Mon, Feb 4, 2013 at 12:35 PM, Ophir Michaeli [ophirmichaeli@gmail.com](mailto:ophirmichaeli@gmail.com)wrote:

> Hi,\*\*\*\*\*\*
> 
> * * *
> 
> Do you know if it is possible to open an elasticsearch shard (lucene  
> 3.6.2) with c# code using lucene 3.0.3 for dot net (the newest version  
> for dot net)?\*\*\*\*
> 
> I get the error "Unknown format version: -11".\*\*\*\*
> 
> * * *
> 
> Thanks,\*\*\*\*
> 
> Ophir\*\*\*\*
> 
> * * *
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ophir\_Michaeli](https://avatars.discourse-cdn.com/v4/letter/o/9f8e36/32.png) [@Ophir\_Michaeli](https://discuss.elastic.co/u/Ophir_Michaeli)\
**Post date:** [February 5, 2013, 1:28pm UTC](https://discuss.elastic.co/t/open-elasticsearch-shard-with-lucene-net/10614/3 "2013-02-05T13:28:53Z")

</div>

OK, thanks, but if I want to use elasticsearch for indexing only while  
still working with lucene directly at search? Is there an older version of  
elasticsearch that works with lucene 3.0.2 (the max .net lucene version) or  
is there a configuration setting at elasticsearch that can solve it?

On Monday, February 4, 2013 12:57:29 PM UTC+2, Itamar Syn-Hershko wrote:

> No, you can't, the Lucene formats are incompatible
> 
> On Mon, Feb 4, 2013 at 12:35 PM, Ophir Michaeli \<[ophirm...@gmail.com](mailto:ophirm...@gmail.com)\<javascript:\>
> 
> > wrote:
> 
> > Hi,\*\*\*\*\*\*
> > 
> > * * *
> > 
> > Do you know if it is possible to open an elasticsearch shard (lucene  
> > 3.6.2) with c# code using lucene 3.0.3 for dot net (the newest version  
> > for dot net)?\*\*\*\*
> > 
> > I get the error "Unknown format version: -11".\*\*\*\*
> > 
> > * * *
> > 
> > Thanks,\*\*\*\*
> > 
> > Ophir\*\*\*\*
> > 
> > * * *
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [February 5, 2013, 3:37pm UTC](https://discuss.elastic.co/t/open-elasticsearch-shard-with-lucene-net/10614/4 "2013-02-05T15:37:43Z")

</div>

Elasticsearch moved to 3.0.2 in version 0.09.0  
Elasticsearch moved to 3.0.3 in version 0.13.1/0.14.0  
Elasticsearch moved to 3.1 in version 0.16.0

> <https://github.com/elastic/elasticsearch/issues/231>

> <https://github.com/elastic/elasticsearch/issues/549>
>
> Fixes important possible index corruptions and memory leak (happens on long runn…ing indexing jobs).

> <https://github.com/elastic/elasticsearch/issues/825>
>
> Upgrade to new lucene 3.1 version. Some changes in behavior:
> \- On windows/solari…s 64bit systems, automatically use mmapfs storage (matching lucene behavior).
> \- Analyzers changed behavior, there will be a separate issue with code changes to indicate the changes.

Those versions are old and I am not sure if they are worth the hassle. Why  
not use a .NET client for Elasticsearch?

If you did wish to continue to use [Lucene.NET](http://Lucene.NET), your Elasticsearch indicies  
would need to use only one shard. [Lucene.NET](http://Lucene.NET) would not know how to deal  
with distributed indices.

--  
Ivan

On Tue, Feb 5, 2013 at 5:28 AM, Ophir Michaeli [ophirmichaeli@gmail.com](mailto:ophirmichaeli@gmail.com)wrote:

> OK, thanks, but if I want to use elasticsearch for indexing only while  
> still working with lucene directly at search? Is there an older version of  
> elasticsearch that works with lucene 3.0.2 (the max .net lucene version) or  
> is there a configuration setting at elasticsearch that can solve it?\*\*\*\*\*  
> \*
> 
> On Monday, February 4, 2013 12:57:29 PM UTC+2, Itamar Syn-Hershko wrote:
> 
> > No, you can't, the Lucene formats are incompatible
> > 
> > On Mon, Feb 4, 2013 at 12:35 PM, Ophir Michaeli [ophirm...@gmail.com](mailto:ophirm...@gmail.com)wrote:
> > 
> > > Hi,\*\*\*\*\*\*
> > > 
> > > * * *
> > > 
> > > Do you know if it is possible to open an elasticsearch shard (lucene  
> > > 3.6.2) with c# code using lucene 3.0.3 for dot net (the newest version  
> > > for dot net)?\*\*\*\*
> > > 
> > > I get the error "Unknown format version: -11".\*\*\*\*
> > > 
> > > * * *
> > > 
> > > Thanks,\*\*\*\*
> > > 
> > > Ophir\*\*\*\*
> > > 
> > > * * *
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to elasticsearc...@\*\*[googlegroups.com](http://googlegroups.com).
> > > 
> > > For more options, visit [https://groups.google.com/\*\*groups/opt\_out](https://groups.google.com/**groups/opt_out)[https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out)  
> > > .
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 2:52am UTC](https://discuss.elastic.co/t/open-elasticsearch-shard-with-lucene-net/10614/5 "2017-07-06T02:52:56Z")

</div>


