Answer the question
In order to leave comments, you need to log in
How to organize search in html site?
Good afternoon? Tell me, please, by what means can I organize a search on the html site?
How things are in practice. There are many static pages, they have a lot of information.
How I imagine the search. There is a muscle base, page tags and the address, title, etc. of the page are entered in the database. After entering in the search field on the site, pages are displayed, where headings and a brief description of the page will be indicated. Clicking on the title will take you to that page.
Any suggestions where to dig for a solution? Perhaps there is ready?
Not necessarily the same as I described, any search engines on a static site are interesting.
Thank you.
Answer the question
In order to leave comments, you need to log in
You can index in ElasticSearch and perform search queries directly from html pages.
Alternatively, you can write a small script that will upload this data to the database, and then calmly search the database. You can use some search engine like Sphinx, but you still have to write a similar script to extract the content from the files and build an index (for the sphinx, see the xmlpipe and xmlpipe2 interfaces).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question