DEV Community

Defne Eroğlu
Defne Eroğlu

Posted on

5

Next.js with Elasticsearch

I would like to start this post, by saying 'I wish Elasticsearch Cloud was free with no time limit, even just with limited features'...
Why am I saying that; because so I could add full text search capability to filter blogs on my blog site that I developed with Next.js...
Full Text Search queries make the content of the documents searchable.
This ability can be used to make searchable the content of blogs in your website, and if you provide search blogs or filter blogs kind of feature in your application, when your user enters words or phrases that appear anywhere in the content of blogs, even if the entered search word is in code blocks, the related blogs can be obtained and shown as search results to your users.
In order to do that, we need to index our blogs, .md or .mdx files, to Elasticsearch, and then, by using Elasticsearch's Rest Api, we provide full text search capability in our application.
I wrote an article on this subject explaining how you can provide full text search capability in your Next.js blog application, you can read from here

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

Best practices for optimal infrastructure performance with Magento

Running a Magento store? Struggling with performance bottlenecks? Join us and get actionable insights and real-world strategies to keep your store fast and reliable.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️