Getting started with ElasticSearch

preview_player
Показать описание


In this episode we look at how to get started with ElasticSearch inlcuding building indexes,

populating data manually and with the bulk api, various queries and filters and filters. We also

look at setting up some more advanced things like synonyms and doing geo distance queries.

Please note that I mention that ElasticSearch's documentation is mostly incorrect. What I mean is

that the documentation hasn't kept up with the changes in newer versions, but there is still useful

and valid information about the API's.
Рекомендации по теме
Комментарии
Автор

Dustin Davis thought Elastic's docs were wrong, so he created
(as c0deporn on YouTube)
How to get started with Elasticsearch

[1:05] Elasticsearch is a document store (like MogoDB or RavenDB)
[1:15] Why: Blazingly fast search performance and highly scalable
[1:44] Denormalized data store (SQL example with 4 joins)
[2:57] Instead, queries to create JSON docs in doc store
[3:17] Search against doc store for aggregation
[4:05] RESTful API server, index places, doc types (restaurant, museum, park)
[5:29] Drag folder to install
[5:39] Open command window to bin> elasticsearch
[6:04] set JAVA_HOME -c:progra~2\java\jre7
[7:13] Restaurant data JSON (from internet) in Request Body
[8:20] HTTP Response 201
[10:20] results 20 ms to complete query
[10:58] Lucense gives max. score
[13:02] "query":"tacos"
[13:51] "fields":["tags"]
more to come

WilsonMar
Автор

At 10:00 if you used a GET request instead of POST then you wouldn't have trouble turning your queries into new documents by accident :)

Anon-tjqb
Автор

What happens if there is multiple address? how does this work? Could you do an example where for example there is a chain of restaurants... how would the indexing and search look like? Thanks!

quixoticfallcy
Автор

Great video, english is not my first language but you provide really clear and useful informations. Also the rythm is perfect, not too fast, not too slow. Now I understand Elastic Search ! Thanks

guillaumeolejniczak
Автор

Thank You for this video :) It was exactly what I was looking for.

xxxgobasu
Автор

Your voice very clear and explanation is very good. Thank you.

venkateshrv
Автор

This is by far the best Video on Intro to ElasticSearch. you finally solved the puzzle!  Thanks to you, i have finally managed to install it and got it running on my PC! Please continue to do some more videos on ElasticSearch and how to connect it to SQL database :)

ndkhan
Автор

It is very nice tutorial for learning.

I need a clarification that how to do the inner object filter. I want to know whether this is possible in ES.

Filter the Score != 30 in the Participants object.

Response:

{
"Contest": {
"Name": "Room1",
"Participants": [
{
"PlayerID": "tester1",
"Score": "30"
},
{
"PlayerID": "tester2",
"Score": "40"
},
{
"PlayerID": "tester3",
"Score": "10"
}
]
}


Expected response:

{
"Contest": {
"Name": "Room1",
"Participants": [

{
"PlayerID": "tester2",
"Score": "40"
},
{
"PlayerID": "tester3",
"Score": "10"
}
]
}

vengat
Автор

Thanks brother for creating this tutorial! :D

mitsuiherlambang
Автор

Thank you for doing this video. Very useful and informative.

the_digitalpro
Автор

1 minute and you did a LOT better job introducing the product than the company who made it. I checked their 3 minute introduction to the product, and it was just a bunch of people going "Elastisearch is and "Elastisearch is.... such!".

Also, I'm a bit confused about it, since you say it is open source, but their website says it's a subscription service. I mean, there's no rules against having a subscription service with open source code, but it feels a bit odd that the creators of it wouldn't mention that you don't HAVE to pay the subscription. I mean, yeah, on the product page for that particular package, way at the bottom, in a tiny text it says "Open source and free to use", but everywhere else on the entire site they try to get you to sign up for the subscription.

I'm gonna use it, but things like that makes me shy away from the product, even if it is good.

morphman
Автор

Thanks a lot for explanation!
PS: Now I want taco :(

marioua
Автор

This is a great start, after more research and as per my requirement I need to sync Elasticsearch with mongoDB, and I summarized it.

apurvagupta
Автор

So just to be clear, Elasticsearch is actually a different way than the common SQL tables, to use a database, by assigning and retrieving values dynamically in JSON?

doomguy
Автор

Can you be more specific about the ES documentation being incorrect? I've heard great things about it in the extremely small time that I've looked into it. In fact, I've had most suggestions say that I do most of my learning there.

equaleffect
Автор

I love your explanation, but can you next time publish the json files? because it's difficult to copy from video.

LucasVieira-okmx
Автор

Clear and easy to understand explanations, thanks! Exactly what I needed to actually understand ES :)

bearlabs-ca
Автор

Excellent video.. just exactly what I was looking for to get started with ES.. tyvm

aniruthmp
Автор

Hi, Nice Video. I would like to know how can we populate synonyms if we have dynamic data?

ashwinrao
Автор

Great tutorial, it helped me a lot. Thanks for your help.

RaviKushappanavar