JOE MAKES

HOME / PROJECTS

▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒


See project on github!

Elasticsearch Jquery Example

The web is a wild place with no instruction manual. Some say querying a database is the job of servers. I say it’s every-man-for-himself. There ain’t no model-view-controller gonna hold me down. Here’s a dead simple example to POST and GET data from Elasticsearch using jquery - directly from the browser. Live dangerously.🌵☠️⚡

Usage

Click this link!

Seriously, it’s all in the browser! If you want to test locally…

  1. Clone this repo
  2. Run this puppy like python -m http.server 8000
  3. Navigate browser to localhost:8000 and open console
  4. Fill out Address, Index, and Document Type for your elasticsearch instance
  5. POST and GET documents from ES!

Site generated 2024-09-20