Week 13
Search Engines w/ Elasticsearch
Friday, April 27, 2018
Let's "build" an app to search for local events.
John Berryman: https://pyohio.org/schedule/presentation/258/
John Berryman: https://pyohio.org/schedule/presentation/258/
John Berryman: https://pyohio.org/schedule/presentation/258/
John Berryman: https://pyohio.org/schedule/presentation/258/
John Berryman: https://pyohio.org/schedule/presentation/258/
John Berryman: https://pyohio.org/schedule/presentation/258/
Then you need a search engine.
John Berryman: https://pyohio.org/schedule/presentation/258/
{
"_id": "938hon049j4039f",
"name": "John Dough",
"birthday": "1970-07-01T11:50:16-05:00",
"passions": [
"water skiing",
"coffee",
"wood working"
],
"address": {
"line_1": "1 Margrove Rd.",
"line_2": "",
"city": "College Park",
"country": "United States",
"zip": 20742
}
}
"mappings": {
"people": {
"properties": {
"name": {
"type": "string",
},
"address": {
"type": "string"
}
}
},
"transactions": {
"properties": {
"timestamp": {
"type": "date",
"format": "strict_date_optional_time"
},
"message": {
"type": "string"
}
}
}
}
http://localhost:9200/<index>/<type>/<id>
http://localhost:9200/data/transactions/<id>
http://localhost:9200/data/products/<id>
http://localhost:9200/colink/tweets/<id>
http://localhost:9200/colink/pictures/<id>
http://localhost:9200/johndough/tweets/<id>
http://localhost:9200/johndough/pictures/<id>
That's about it...
Worksheet Tasks:
Postman collection: ter.ps/389lpostman
Elasticsearch Endpoint: (See Postman)
Submit a .txt file with your answers + queries to submit server.
Codelabs:
Final Project:
Feedback form: ter.ps/feedback13