SQLpage icon indicating copy to clipboard operation
SQLpage copied to clipboard

search component

Open amrutadotorg opened this issue 1 year ago • 3 comments

Hi,

I would like to build a page with a lot of text, and I was wondering how to implement a search engine. Is it possible?

Thank you.

amrutadotorg avatar May 22 '24 22:05 amrutadotorg

Hello ! A search engine is definitely possible ! You can then use the form component (https://sql.ophir.dev/documentation.sql?component=form#component) to display the search input field. Then, you should store your full-text documents in your database, and use your database's full-text search capabilities: Sure! Here is a list of documentation links for full-text search in various databases:

  1. SQLite: - SQLite FTS5 Full-Text Search
  2. PostgreSQL: - PostgreSQL Full-Text Search
  3. MySQL: - MySQL Full-Text Search Functions
  4. MS SQL Server: - SQL Server Full-Text Search

lovasoa avatar May 23 '24 17:05 lovasoa

Thank you so much. I will try that. Os it also possible to refine the search via facets and filters?

amrutadotorg avatar May 24 '24 13:05 amrutadotorg

Yes it is! You can use the form component for that too.

lovasoa avatar May 24 '24 14:05 lovasoa

That's awesome! If I encounter any issues, I will use the discussion page.

amrutadotorg avatar May 25 '24 03:05 amrutadotorg