Chapter 6: Mapping | Elasticsearch using Python

preview_player
Показать описание
In this video, we see how Elasticsearch creates its own mapping and where it can go wrong. We also create our custom mapping to override default field automatically created by ES.
Рекомендации по теме
Комментарии
Автор

hello, I want to ask. I have executed the query and in the index data I entered. but the csv/json file is not uploaded to the file. I checked the index pattern, the health status is yellow and the file size is 208b???

riyanirawan
Автор

Thank you. Great tutorials. Simple explanation for a beginner. Can you please upload videos on applying different analyzers. Thanks once again.

vijinarayan
Автор

Added the GitHub link for the notebook code! Sorry for forgetting.

amoghmishra
Автор

what if I want to fetch the mapping of a particular field at a time ex-date, class, country because it is not a good practice to fetch the mapping of the entire index at once when there is a huge amount of data. is it possible to provide an absolute or relative path to fetch mapping of a field?

rishiyadav
Автор

Why is there so much high-frequency audio noise in these videos?

jeffyutzler
Автор

Hi can you tell me how can I add extra data in elastic.
like ur document 1, 2,3 was already saved in elastic. now due to some reason I have to add few more extra fields like pincode and population in each document.. so how can i insert the new doc4
doc4 = {
'city':'city_name', 'country':'country_name, 'date':'date', 'population:'32423', 'pincode':'42342'
}

need to update the old docs as well need to insert this new structure of data

rjsnh
Автор

Hey there. Thank you for these amazing tutorials. I have a problem I don't know if you can help me. I have loaded a lot of documents in my index... Over 70000.now as I get into python to perform the queries, I am only seeing a few documents. Do you have any idea of what I should do for all my data to he read?

brendachirata
Автор

This is wrong to encourage deletion of the index to modify. What if this was production? Is there not way to modify it??

rs-tarxvfz
Автор

Thank you for this video. I think that your videos are very good.

I am writing Python code to use Elasticsearch. I want to do a query on an exact-value field (so the query will not analyze the query string, but will search for the exact value instead).

Is this what I should do?

indices.create()

indices.put_mapping(), with body as:
body =
{
"properties": {
"my_field_name": {
"type": "text",
"index": "not_analyzed"
}
}
}

index()

indices.get_mapping()

Thanks
Saurabh

saurabhbhairava