Skip to content

Instantly share code, notes, and snippets.

View vrsandeep's full-sized avatar

Sandeep Rao vrsandeep

View GitHub Profile
@vrsandeep
vrsandeep / elasticsearch-example.js
Last active July 9, 2024 17:55 — forked from StephanHoyer/elasticsearch-example.js
Simple example how to use elastic search with node.js using standard and ngram tokenizer
'use strict';
var elasticsearch = require('elasticsearch');
var log = console.log.bind(console);
var client = new elasticsearch.Client({
host: 'localhost:9200',
log: 'trace'
});