Best way to query content from keywords


#1

Is there any .match() using Lucid ?


#2

Hey @nickngqs! :wave:

Could you be more explicit about what you are trying to achieve?

Adding things like code examples, use cases or even link to a repository could help us understand what you are trying to do.

Think of the forum about a big database that can help people finding the solution to a problem they have, so try to describe the problem the best you can.


#3

Hey!

For example, a search bar that types ‘adonis’ will find blog posts that will return with the word adonis using the Query Builder

await Database
  .from('users')
  .matches('adonis')

#4

For that, you first have to understand how SQL works and then construct the right SQL query for your use case.