# Compare solr generated index with elastic

**URL:** <https://discuss.elastic.co/t/compare-solr-generated-index-with-elastic/102707>\
**Category:** Elasticsearch\
**Created:** [October 4, 2017, 1:07pm UTC](https://discuss.elastic.co/t/compare-solr-generated-index-with-elastic/102707 "2017-10-04T13:07:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhishekash](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@abhishekash](https://discuss.elastic.co/u/abhishekash)\
**Post date:** [October 4, 2017, 1:07pm UTC](https://discuss.elastic.co/t/compare-solr-generated-index-with-elastic/102707/1 "2017-10-04T13:07:28Z")

</div>

Hello,

We had solr as our search back end and have been moving towards elastic search .

Now, while generating index on a dataset with

1. **elastic 5.2.2 generated index of size 17 GB**
2. **solr on lucene 4.7.x generated index of size 57 GB**

There is no obvious error in the logs.

But, i am worried on the index size. If i have ingested everything. Searching everything is not possible.

So, i wanted to compare if the same number of document are there or the number of ids are same or not to be sure.

I tried luke but seems like the index structure is different in solr vs elastic and does not seem obvious on how to use it.

Please help

---

<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:** [October 4, 2017, 2:18pm UTC](https://discuss.elastic.co/t/compare-solr-generated-index-with-elastic/102707/2 "2017-10-04T14:18:19Z")

</div>

elasticsearch 5 does not use Lucene 4 behind the scene. So that might explain some few things, no?

But at the end of the day, I don't understand if you are able to make elasticsearch works or not?

---

<div class="post-metadata">

**Author:** ![abhishekash](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@abhishekash](https://discuss.elastic.co/u/abhishekash)\
**Post date:** [October 5, 2017, 5:18am UTC](https://discuss.elastic.co/t/compare-solr-generated-index-with-elastic/102707/3 "2017-10-05T05:18:09Z")

</div>

Elastic 5.2.2 is using its default lucene version . I am not trying to run an older version of lucene with elastic.

Here i am trying to find out if i missing some data in my indexes considering the index size is drastically less in elastic

Are you suggesting that since it is much more recent version of lucene in elastic , we cannot compare the index sizes ?

---

<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:** [October 5, 2017, 5:33am UTC](https://discuss.elastic.co/t/compare-solr-generated-index-with-elastic/102707/4 "2017-10-05T05:33:57Z")

</div>

> [@abhishekash](#):
>
> Are you suggesting that since it is much more recent version of lucene in elastic , we cannot compare the index sizes ?

Yes. Exactly. It's like comparing oranges with apples IMHO.

> Here i am trying to find out if i missing some data in my indexes considering the index size is drastically less in elastic

I'd first just run a `GET _search?size=0` and count the number of documents.  
If they are all there, I think it's already good.

---

<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:** [November 2, 2017, 5:33am UTC](https://discuss.elastic.co/t/compare-solr-generated-index-with-elastic/102707/5 "2017-11-02T05:33:57Z")

</div>

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