# Elastic search has less results than lucene

**URL:** https://discuss.elastic.co/t/elastic-search-has-less-results-than-lucene/11086
**Category:** Elasticsearch
**Created:** [March 10, 2013, 11:40am UTC](https://discuss.elastic.co/t/elastic-search-has-less-results-than-lucene/11086 "2013-03-10T11:40:47Z")
**Posts on this page:** 4
**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: [March 10, 2013, 11:40am UTC](https://discuss.elastic.co/t/elastic-search-has-less-results-than-lucene/11086/1 "2013-03-10T11:40:47Z")

</div>

Hi,

I index 1 million pages in lucene and the same pages in elasticsearch.

In elasticsearch I get 5 to 10% les results (the results I do get are the  
same in elasticsearch as with lucene).

How can I check the reason for the differences?

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: ![simonw\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simonw_2/32/1130_2.png) [@simonw\_2](https://discuss.elastic.co/u/simonw_2)
#### Post date: [March 10, 2013, 1:21pm UTC](https://discuss.elastic.co/t/elastic-search-has-less-results-than-lucene/11086/2 "2013-03-10T13:21:46Z")

</div>

Unless you provide more insight in what you are doing, the query you are  
running and how you analyze things I don't think anybody will / can help  
you here.  
There are so many moving parts here, by all means I would guess the problem  
is in your code ie. you are not comparing apples and apples.

that said, I am happy to help you either way. you can also share your code  
maybe on github or so?

simon

On Sunday, March 10, 2013 12:40:47 PM UTC+1, Ophir Michaeli wrote:

> Hi,
> 
> I index 1 million pages in lucene and the same pages in elasticsearch.
> 
> In elasticsearch I get 5 to 10% les results (the results I do get are the  
> same in elasticsearch as with lucene).
> 
> How can I check the reason for the differences?
> 
> 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: ![Ophir\_Michaeli](https://avatars.discourse-cdn.com/v4/letter/o/9f8e36/32.png) [@Ophir\_Michaeli](https://discuss.elastic.co/u/Ophir_Michaeli)
#### Post date: [March 14, 2013, 3:15pm UTC](https://discuss.elastic.co/t/elastic-search-has-less-results-than-lucene/11086/3 "2013-03-14T15:15:09Z")

</div>

Issue solved. The problem was that the document id at elasticsearch was a  
bit (logically) different than the one used as lucene document id. So some  
of the indexed data at ES was overridden when doc id repeated itself.  
Thank you Simon

On Sunday, March 10, 2013 3:21:46 PM UTC+2, simonw wrote:

> Unless you provide more insight in what you are doing, the query you are  
> running and how you analyze things I don't think anybody will / can help  
> you here.  
> There are so many moving parts here, by all means I would guess the  
> problem is in your code ie. you are not comparing apples and apples.
> 
> that said, I am happy to help you either way. you can also share your code  
> maybe on github or so?
> 
> simon
> 
> On Sunday, March 10, 2013 12:40:47 PM UTC+1, Ophir Michaeli wrote:
> 
> > Hi,
> > 
> > I index 1 million pages in lucene and the same pages in elasticsearch.
> > 
> > In elasticsearch I get 5 to 10% les results (the results I do get are the  
> > same in elasticsearch as with lucene).
> > 
> > How can I check the reason for the differences?
> > 
> > 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: ![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:46am UTC](https://discuss.elastic.co/t/elastic-search-has-less-results-than-lucene/11086/4 "2017-07-06T02:46:26Z")

</div>


