engineeringdept
I’ve just released the first version of Snap, an Elasticsearch client. It borrows ideas about application structure and process management from Ecto, as well as a DSL-free nature and zero-downtime index management from Elasticsearch.
It adds support for using Streams to perform bulk operations against an index, as well as emitting Telemetry events.
It’s new and probably not production ready yet. I expect to introduce it into a production environment in the coming weeks, and expect some changes will follow.
Please feel free to kick the tyres on it, and see if it’s useful for you. Feedback welcome!
Trending in Announcing
Hi everyone! :waving_hand:
Like many in the BEAM community, we’ve often felt the friction of running Dialyzer in our daily development w...
New
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
Hello,
I’m sharing my plugin here in forum after some time so it has time to mature and proof yourself.
I use Claude Code daily on a pr...
New
Aloha gang,
There’s a new class of AI model out from TypeSafe. Jev is their flagship model. You can learn about it here:
...
New
I’ve recently created a small library phoenix_vite integrating the vite build tooling with phoenix.
It
provides an igniter.installer t...
New
I needed something like premailer for rails, and after searching, I decided to make an easy-to-use library to handle inline styles and co...
New
Other Trending Topics
Hey there,
I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first.
...
New
Hi everyone :waving_hand:
I wanted to share something I’ve been building — NowBlind, a random chat app designed to help people discover ...
New
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly)
AI dream has many faces, but general...
New
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself.
My main conc...
New
AI tools and services seem to be the new JS framework - with new ones popping up every 5 minutes - hence it might be worth posting one of...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #code-sync
- #discussion
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #ai
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #blog-post
- #elixirconf-us
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #security
- #elixirconf-eu
- #api
- #forms
- #hex










Showing Posts 1 to 8- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
cenotaph
Did you make any further progress on this?
engineeringdept
Hi there - the library is in production use and has been actively developed since my posting. I believe other people are also using it now.
Werner
Am looking for an Elasticsearch library, which ones are currently in productive use and under active development? At the moment probably the above mentioned Snap and Elasticsearch or not?
What are the main differences between these two?
Thanks and best regards,
Werner.
engineeringdept
I’ve just released 0.5.0 which includes a bunch of improvements since my last post from other users of the library - see the CHANGELOG. Thanks to everyone who has contributed!
engineeringdept
0.6.0 is out which supports the ability to swap HTTP clients, allowing mock HTTP clients for testing, or to use your preferred HTTP client for whatever reason. It still defaults to using Finch.
Full changelog here: snap/CHANGELOG.md at main · breakroom/snap · GitHub
bdarla
Is there a way to query elasticsearch by mixing slop and wildcards for full-text search?
I mean to make a query such “
(comput* inform*)~5” and return documents that comprise words such ascomputerandinformationwherein they appear close to each other in the text, i.e. maximum 5 words distance.bdarla
I managed to find out how to draft such queries. In case someone might also needs to make such queries, I provide an example below, that can be provided to Snap:
engineeringdept
I’ve just released Snap 0.9.0, which adds support for the Document API in
Snap.Document, exposes aSnap.Search.countfunction for counting documents in an index, and some quality of life and testing improvements with an index namespacing feature.The index namespacing feature allows a
Snap.Clusterto be isolated on a per-application or per-environment basis so you can have your dev environment indexes be prefixed withdev-and your test environment be prefixed withtest-etc.It also allows us to isolate indexes on a per-process basis, which enables asynchronous tests to be isolated from each other, so they operate on their own view of the cluster’s indexes. This is similar to how Ecto sandboxing works, but within the constraints of ElasticSearch/OpenSearch which doesn’t support transactions.
This makes it possible to set
async: truein your tests which is often a nice performance improvement.I’m really open to feedback on this API - let me know if it does what you expect, in the way you expect it!
For more details see Snap.Cluster.Namespace and Snap.Test.