# Build a price comparator

**URL:** <https://discuss.elastic.co/t/build-a-price-comparator/4282>\
**Category:** Elasticsearch\
**Created:** [April 23, 2011, 1:18pm UTC](https://discuss.elastic.co/t/build-a-price-comparator/4282 "2011-04-23T13:18:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julien\_Duponchelle\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julien_duponchelle_2/32/3194_2.png) [@Julien\_Duponchelle\_2](https://discuss.elastic.co/u/Julien_Duponchelle_2)\
**Post date:** [April 23, 2011, 1:18pm UTC](https://discuss.elastic.co/t/build-a-price-comparator/4282/1 "2011-04-23T13:18:55Z")

</div>

Hi,

My problem is the following. I want to build a price comparator between many  
webshop. To be clear i will take an example with a book price comparator.

I have the same book on many website and i have the ISBN as an unique  
identifier for a book.

When user make a search i want to display to it all books corresponding to  
his search and the best price found for each book. When the user click on a  
a book he get the list list of available offers for this books.

What's the best way to do the book search:

- Index one document by webshop and dynamcily found the best price for each  
books at search (but how?)
- Generate a book document which contain the price the best webshop

Thanks by advance

---

<div class="post-metadata">

**Author:** ![Karussell1](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@Karussell1](https://discuss.elastic.co/u/Karussell1)\
**Post date:** [April 24, 2011, 7:39pm UTC](https://discuss.elastic.co/t/build-a-price-comparator/4282/2 "2011-04-24T19:39:15Z")

</div>

> the best price found for each book

This requirement makes it necessary IMO to index every book as a  
document with the minimal price attached. Then add all prices of the  
bookstores into this doc.

On Apr 23, 3:18 pm, Julien Duponchelle [jul...@duponchelle.info](mailto:jul...@duponchelle.info)  
wrote:

> Hi,
> 
> My problem is the following. I want to build a price comparator between many  
> webshop. To be clear i will take an example with a book price comparator.
> 
> I have the same book on many website and i have the ISBN as an unique  
> identifier for a book.
> 
> When user make a search i want to display to it all books corresponding to  
> his search and the best price found for each book. When the user click on a  
> a book he get the list list of available offers for this books.
> 
> What's the best way to do the book search:
> 
> - Index one document by webshop and dynamcily found the best price for each  
> books at search (but how?)
> - Generate a book document which contain the price the best webshop
> 
> Thanks by advance

---

<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, 4:07am UTC](https://discuss.elastic.co/t/build-a-price-comparator/4282/3 "2017-07-06T04:07:44Z")

</div>

Closed on July 6, 2017, 4:07am UTC


