Home / Companies / Snyk / Blog / Post Details
Content Deep Dive

Lessons learned from improving full-text search at Snyk with Elasticsearch

Blog post from Snyk

Post Details
Company
Date Published
Author
Sergey Vasilkov
Word Count
1,747
Company Posts That Month
16
Language
English
Hacker News Points
-
Post removed?
No
Summary

Elasticsearch is a popular open-source search engine used for adding full-text search capabilities in projects due to its real-time speeds and robust API. However, it can be complicated at first, but with the right configuration, it can provide flexible text search results. A standard analyzer may not be enough if you want better and more flexible search results, as seen in the example where a custom analyzer was created to achieve case-insensitive search using incomplete words of 3-8 characters in length. The custom analyzer uses an edge-ngram tokenizer, which breaks up tokens based on length, and a lowercase token filter to make search case insensitive. With this configuration, Elasticsearch provides great custom search results, and the next step will be exploring aggregations.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 1 960 327 109 +7%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.