Skip to content

Repo meant to accompany my tutorial on word-by-word autocomplete using Elasticsearch and Painless scripting

Notifications You must be signed in to change notification settings

colbyguan/elasticsearch-next-word-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elasticsearch-next-word-demo

This repo is meant to accompany my tutorial on word-by-word autocomplete using Elasticsearch and Painless scripting here

If you have Go and Elasticsearch installed, you should be able to run this and be good to go!

# in one terminal
bin/elasticsearch

# in another terminal
go run main.go populate data/data.txt
go run main.go

Summary

Normal autocomplete (i.e. Google search) usually completes the full phrase like this, which may have results with the same first few words:

prefix search demo

While word-by-word autocomplete (i.e. smartphone keyboards) trades off having to click/type more, but deduplicates common words in the beginning:

next-word search demo

About

Repo meant to accompany my tutorial on word-by-word autocomplete using Elasticsearch and Painless scripting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published