Home > Blogs > VMware vFabric Blog

Q&A with Shay Banon: 10 “Bonsai Cool” Things About elasticsearch

We are very fortunate to post an interview with Shay Banon, the founder of elasticsearch. Elasticsearch is technology that is very popular among some of the coolest companies on the web today, including  SoundCloud, StumbleUpon, Mozilla and Klout. These companies use elasticsearch to help them deploy powerful search capabilities in their applications that are easy to set up, scalable and built for the cloud.  In this interview, we get to learn all kinds of cool things:

  1. How Shay got into search
  2. How he came up with the idea for elasticsearch
  3. Why elastic search is different than other OSS search projects
  4. Example elasticsearch users like Foursquare, Brewster, GitHub, Sony, and Klout
  5. About the elasticsearch architecture for big data
  6. The strategy behind JSON over HTTP for search
  7. Connecting elasticsearch with RabbitMQ
  8. Connecting elasticsearch with Spring
  9. Connecting elasticsearch with GemFire
  10. Running elasticsearch on virtualized infrastructure

Without further ado, here is the interview.

Q1. So, how did you end up getting into search?
About 10 years ago, I moved from Israel to London because my wife was going to study to be a chef at the Cordon Bleu. I had no job. I was in a new country. I was unemployed. So, I started to get into the latest, cool, new technologies.

To do this, I came up with a little project. I decided to build my wife an application to store all the chef recipes, historic aspects about food, etc. I wanted her to have a single place to find whatever is relevant for what she typed about cooking. This little project is what got me into search. By doing this, I got into Lucene. I built my first open-source project called Compass, a library around Lucene. Then, I moved from Compass to elasticsearch.

Unfortunately, my wife is still waiting for the application I promised to build :- ).

Q1B. So, what’s your favorite dish of hers?
That’s hard. Crème brulee, duck confit…hmmm, there are many!

Q2. How did you come up with the idea for elasticsearch?
Well, I was doing a lot of work with open source search for quite some time, mainly on top of Lucene.  I was doing that for ages. Then I started working for Gigaspaces and in-memory data grids. I felt the need to build a next-gen search engine with all the features you expect today—distributed computing, hybrid cloud support, ease of adoption, scalable, and designed with standard APIs on REST/JSON. I sat down to write it a few years ago and open-sourced it after a few months. That’s it. It’s taking off and has been amazing. I quit my job, started doing this full time, and started a company around it.

Q3. Why is elasticsearch different than other open source search engines?
In a nutshell, elasticsearch makes data exploration very easy.

First of all, there is a strong principle or architectural notion that things should be easy and simple. When people start to set-up, deploy, and use elasticsearch, it is easy to set-up 2, 4, 6, 10—as many nodes as you want. It’s easy to set up a cluster too. When you start developing, it’s easy to start using documents as JSON documents.  The API makes it easy to use different languages like Java, Ruby, Perl, Python, and more.  In runtime, elasticsearch manages distribution—adding a node is quite easy and data is redistributed automatically.

If you think about search as a process, elasticsearch goes beyond free-text. Users and developers want valuable information from their data regardless of the form. While elasticsearch does free-text search very well, you also want structured search, analytics, aggregations, facets over the data, and more. We tie all these together nicely.  For example, let’s say you are indexing a social string from Twitter like a lot of our customers do. You can easily set it up and ask questions like, “find all the tweets about the president.” This is a free-text search over a bunch of tweets. Then you can say, “Find all the tweets about the president when tweeted from Idaho in the past month.” We sprinkle a bit more structure here by adding the location and time period. Then, we can ask it do the same thing, but break it down into number of tweets per day to see a trend over time. So, we end up with a metric and several dimensions to show something of value.  After the initial query is set up, we can easily change the name of the president to any other person, and elasticsearch reflects the result—set in real-time. Then, we can change from a person to a topic like “flu epidemic,” and the result-set is reflected in real-time again.

For developers, its very powerful how easy data exploration becomes with elasticsearch.

Q4. You have many great customers—what are some of the most interesting implementations?
Right, we are very fortunate to have Mozilla, StumbleUpon, Klout, Soundcloud and many others as customers, which is awesome.

As far as metrics go, I think that one of the coolest implementations is an email archiving company. They put a petabyte of data into elasticsearch. Then, they do unstructured search on a sizable multi-cluster, multi-node environment. This is interesting because it handles such large, distributed, big data problems.

There is another company that effectively stores and indexes all the download events of their online property. They have billions of these events. They set-up elasticsearch like a version of Google Analytics for their users. Their users can see download sources, usage patterns, histograms, trends, money made, geo-based filtering, and more.

Path uses us to index moments. This is a lot of data. This is social graph search—search within my friend’s moments. Soundcloud is another one—when you search there, you can explore music by a variety of filters.

We are always excited to hear stories about our customers.

Q5. How does the design of the elasticsearch architecture deal with big data?
When we designed it, we spent a lot of time thinking about how data looks. We wanted users to easily express what they want.  Let me explain.

Not all data is created equal. Data flows into systems in different ways. Some data is more important than other data. Data might need to be highly available versus archiving. What we tried to do is allow a user to easily express these notions.  For example, one popular use case is logging.  We are used as an open-source logging database—people can easily search and get statistics, etc. Logging is a great example where data is not equal—current data is very important compared to old data. With elasticsearch, you can express the fact that data for today is much more important. We want the capacity and scale to be right for new data—we need to be on strong servers with SSD to scale.  As data ages—and we can say that it is less relevant. For those situations, the app runs on cheaper boxes. As well, we don’t need 4 copies, we just need 2.  Now, we can manage our costs.

With big data, we have to manage data differently depending on use. We think about these things as much as possible and try to make it really easy for users to express these types of policies.

Q6. You said it was strategic to make elasticsearch work with JSON over HTTP. Could you elaborate?
Sure, this is simple. JSON over HTTP has effectively become the lingua franca of services in a system. Even though we are a Java solution, JSON over HTTP makes it really easy for people to develop in Ruby, Perl, and other languages. HTTP is the wire format and JSON is the payload. It’s easily consumable by any language.  In addition, you can now state a response in JSON and stream it directly to the browser.

By supporting these standards, our usage becomes easier.

In addition, we also try to make our RESTful APIs easily consumable. When you give elasticsearch a search request, you can also ask for a histogram like the number of tweets per day in the past year. We return it in a structure that is ready to be thrown into any charting library.  It’s not just HTTP and JSON, it’s the data or object structure—we make it easy to consume.

Q7. How does RabbitMQ work with elasticsearch?
Conceptually, you can easily move data from RabbitMQ into elasticsearch.

As I mentioned earlier, one way to push data into elasticsearch is by calling our index API—a lot of people use it this way. But, many times people need an asynchronous approach and are using RabbitMQ. So, we made it easy for developers using RabbitMQ to push messages into elasticsearch.

Instead of having to write something to poll a queue and move the message into elasticsearch, elasticsearch can do it for you. Basically, elasticsearch starts a listener for a queue or several queues.  The data coming down the queue will be pulled and automatically inserted into elasticsearch. Developers won’t have to worry about doing more than pushing data into RabbitMQ to have it indexed and searchable. Of course, you will need to ensure formats are compatible, but the idea is that elastic search is a plug-in for a loosely coupled architecture running RabbitMQ.

Q8. How might developers connect elasticsearch with Spring and Cloud Foundry?
Oh, it’s very possible and fairly straightforward to connect elasticsearch with the whole Spring portfolio. I just saw someone connect Spring Data with elasticsearch on Twitter the other day—it’s on GitHub.

There is also a sample Rails app that uses Tire to interact with elasticsearch on cloudfoundry.com, and elasticsearch can run as a service on Cloud Foundry.

Q9. What about connecting with GemFire at the data layer?
We certainly have Java in common. Not too long ago, I spoke with a GemFire architect. We both have solid Java-based APIs.

In addition, Spring Data is enabling data access for so much—relational databases, Hadoop, HTTP/REST, Redis, MongoDB, Neo4j, HBase, Grails, GemFire, and more soon, I am sure. As mentioned above, there are now connections between Spring Data and elasticsearch. From a loose-coupling perspective, there also is connectivity through RabbitMQ. So, there are many possibilities. I also heard you can run Hadoop style distributed workloads like a distributed stored procedure written in Java.

Q10. How does elasticsearch perform on virtualized infrastructure?
In fact, most of our customers run in the cloud on VMs. Many people run Tomcat or cost effective platforms like tc Server. We require Java 6 to run, and we typically run on most variants of Linux.

We were architected for elastic scale in hybrid cloud situations—just add a VM, and the service will automatically join the cluster and redistribute the data and the workload. You can also stick elasticsearch into various cloud deployment services like vFabric Application Director for automation and cloud bursting.

This entry was posted in GemFire, RabbitMQ, Spring, tc Server and tagged , , , , , , , , , , , , on by .
Adam Bloom

About Adam Bloom

Adam Bloom has worked for 15+ years in the tech industry and has been a key contributor to the VMware vFabric Blog for the past year. He first started working on cloud-based apps in 1998 when he led the development and launch of WebMD 1.0’s B2C and B2B apps. He then spent several years in product marketing for a J2EE-based PaaS/SaaS start-up. Afterwards, he worked for Siebel as a consultant on large CRM engagements, then launched their online community and ran marketing operations. At Oracle, he led the worldwide implementation of Siebel CRM before spending some time at a Youtube competitor in Silicon Valley and working as a product marketer for Unica's SaaS-based marketing automation suite. He graduated from Georgia Tech with high honors and an undergraduate thesis in human computer interaction.

56 thoughts on “Q&A with Shay Banon: 10 “Bonsai Cool” Things About elasticsearch

  1. Pingback: You're hot, or not: why Elasticsearch raised $ 24 million just 3 months after a $ 10 million round

  2. srchulo

    Awesome article!!

  3. تور دبی

    Rixos Bab Al Bahr Samaya Hotel Deira اطلاعات منطقه دیره در تور دبی اطلاعات هتل Al Ghurair Rayhaan دبی اطلاعات هتل ارکید دبی برج خلیفه دبی بلیت دبی تور ارزان دبی تور امارات تور دبی تور دبی ارزان تور دبی هتل ترادرز تور هتل Avenue دبی تور هتل hyatt regency دبی تور هتل ارکید دبی تور هتل القصر دبی تور هتل رز ریحان دبی دبی درباره دبی دوبی رزرو هتل ارکید دبی رزرو هتل دبی رزرو هتل در دبی رستوران های ایرانی دبی عکس های بازار پارچه در تور دبی ژانویه عکس های برج الماس دبی قیمت تور دبی قیمت تور هتل Avenue دبی قیمت تور هتل رز ریحان دبی قیمت ماشین در دبی قیمت هتل ارکید دبی مرکز خرید مرکز خرید دبی نرخ تور دبی هتل آتلانتیس دبی هتل ارکید دبی هتل دبی هتل رکسوس باب البحر هتل های 5 ستاره دبی هتل های دبی هزینه تور دبی هزینه هتل ارکید دبی پارک آبی وایلد وادی دبی پارک صفا دبی پارک های دبی

  4. انواع کاندوم

    خرید انواع کاندوم

  5. خرید سرور مجازی

    AbtinServer as one of the best providers of hosting

  6. فضای مجازی


  7. دانستني ها

    follow post

  8. موزيک روز دنيا

    very well

  9. empbank.in

    fgdfgplg[l ,.,vxcv .sdfv/sdfsdf

  10. blackmounta.in

    rfgregfretgre hhgfghfghf

  11. content4u.in

    fdskfkdfksk eurwurw9r8w

  12. empbank.in

    dfdsfgdsiods iewfiwerijweirweri

  13. تصفیه آب خانگی

    very good

  14. درب ضد سرقت

    tanx all

  15. قالب فلزی

    گروه تکنو صنعت از معتبرترین و به نام ترین فعالان صنعت، تولید و ساخت قالب فلزی، دستگاه ها و ماشین الات صنعتی و ساختمان در ایران می باشد. این شرکت در سال های فعالیت خود توانسته است دوشادوش پیمانکاران و مهندسان صنعت ساختمان محصولاتی با کیفیت مناسب تولید و روانه بازار نماید. تکنو صنعت با حفظ اصول رضایت مشتری و با اتکا به مرغوبیت محصولاتش در حال خدمت به صنعت ساختمان کشور می باشد و دارای کارنامه موفقی در پروژه های سد سازی، پل سازی، انبوه سازی در بیش از یک دهه گذشته است. کارخانه و دفتر مرکزی فروش شرکت در تبریز دایر می باشد.

    شما می توانید کلیه محصولات ما را در بخش های مختلف این سایت با مشخصات کامل آن مشاهده نمایید.

    خدمات و محصولات شرکت تکنو صنعت:

    طراحی و مشاوره سیستم های قالب بندی بتن
    داربست های مدولار مثلثی و چکشی
    جک سقفی در اندازه های مختلف
    قالب های مدولار استاندارد بتن
    ملزومات قالب بندی بتن
    قالب های خاص بتنی
    قالب فلزی
    دستگاه خم و برش میلگرد
    ویبراتور و شلینگ های ویبراتور
    بلوک زن و کادونا
    خاموت زن
    دستگاه فنس و حصار کشی
    روسی و ایرانی
    علاوه ارائه و تولید محصولات ساختمانی، تکنو صنعت برای مقرون به صرفه بودن محصولات ساختمانی مرکز خرید و فروش تجهیزات قالبندی و ماشین الات ساختمانی دست دوم راه اندازی کرده است.

  16. چاقی و لاغری

    Good post

  17. دانلود اهنگ جدید

    good Thanks …

  18. دانلود آهنگ جدید ایرانی


  19. دانلود موزیک ویدیو جدید

    Awesome article!!

    دانلود آهنگ جدید شهاب مظفری

  20. قالب سازی

    طراحی و قالب سازی
    شرکت قالب سازی پلاستیکی فن آور پلاستیک

  21. آموزش سئو

    آموزش سئو

  22. هارمن کاردن Onyx Studio 3

    asd ssad123123 asdsdsad 1323

  23. ترک اعتیاد

    ترک اعتیاد موادمخدر و مواد محرک در مرکز بستری ترک اعتیاد خانه سپید

  24. ثبت برند در کرج

    ثبت پایش مجری ثبت برند در کرج

  25. درمان اعتیاد

    thanks very good

  26. ثبت شرکت در کرج

    موسسه ثبتی آراکس

  27. ثبت تغییرات شرکت در کرج

    ثبت تغییرات شرکت در کرج توسط موسسه ثبتی پایش

  28. اسکن پا

    very good article

  29. کفی طبی

    thanks for this

  30. کفش طبی

    very good

  31. ایده نوین

    thank you so much

  32. ثبت علامت تجاری در کرج

    full of amazing and spectacular pics. its great. thanks

  33. پشه بند

    thank you so much

  34. ثبت برند

    full of amazing and spectacular pics. its great. thanks

  35. مراحل ثبت برند

    full of amazing and spectacular pics. its great. thanks

  36. ترک تریاک

    Opium addiction

  37. پشه بند کودک

    Production of baby mosquito nets

  38. شرکت طراحی سایت اصفهان

    Thanks a lot for sharing this with all folks

    1. فروش هیومیک اسید

      Good post

  39. reza kj

    thank you very much

  40. reza kj



  41. reza kj



  42. reza kj



  43. reza kj



  44. reza kj



  45. reza kj



  46. نمایندگی درب ضد سرقت

    full of amazing and spectacular pics

  47. Pingback: https://keramatzade.com/8-Steps-to-success-in-the-business – اخبار

  48. تهرانیان وب

    thank you for best site . like for you

  49. زرخشت


  50. کالاپلاس

    ike for you.

  51. کوهین بتن

    Thank you and your good site

  52. کمپرسور هوای فشرده

    This blog is the very use ful information for user and all point is very useful screen shoot. very help for user.
    Thank you

  53. ریخته گری آلومینیوم

    wow amazing post. thank you very much.
    i like the way you write your blog post

  54. سئو سایت

    ul information for user and all point is very useful screen shoot. very help for user.
    Thank you

  55. ناصر حقیقی

    full of amazing and spectacular pics. its great. thanks



Leave a Reply

Your email address will not be published. Required fields are marked *