Skip to content

silviurosu/elixir-elasticsearch-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ElixirElasticsearch

Sketch application for integrating Elixir and Elasticsearch using the elasticsearch library.

Some of the features implemented here:

  • a singe Genserver to take care of the ES index. We do not want to overload the cluster to get out of Java Heap Space
  • a stream implementation to load all the documents to be sent to index
  • a search DSL to do not expose the Elasticserach query syntax. It's easier to use and easier to upgrade to later versions of Elasticsearch in case changes are made.

Indexing

Indexing can be done either by hot swap-ing the whole cluster:

ElixirElasticsearch.IndexerGenserver.hot_swap()

either by sending a list of documents to index:

ElixirElasticsearch.IndexerGenserver.index_restaurant("demorestaurant")

Searching

Searching can be done by calling the search wrapper module:

ElixirElasticsearch.SearchGateway.search(query)

About

Demo project on how to integrate Elastic Search and Elixir

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages