WelcomeUser Guide
ToSPrivacyCanary
DonateBugsLicense

©2025 Poal.co

724

I am in the process of making a website. I am a noob at it. A few people working on it. But i am the main "idea" guy. My vision is that people who enter the site can search for the term they are interested in, and the site (without opening a second window) displays the search results in "house" is it feasible? Is it difficult?

I am in the process of making a website. I am a noob at it. A few people working on it. But i am the main "idea" guy. My vision is that people who enter the site can search for the term they are interested in, and the site (without opening a second window) displays the search results in "house" is it feasible? Is it difficult?

(post is archived)

[–] 1 pt (edited )

Depends on the size of the data store and the number of uses per second. It’s not difficult, but these factors will determine what technology and how much horsepower you need to run it.

Scalability being your third leg to consider. But it sounds like that may not be an issue for you at this juncture.

[–] 0 pt

It wont be too large. 🙂

[–] 1 pt

Whatever tech you end up going with, make sure that you're doing user input filtering on the backend, and not just within the browser. This is wisdom that far too many people ignore.

[–] 1 pt (edited )

Depends on the tech stack of the website. What techs is it using?

If the website is just files (and not stored in a database) then this might work https://pagefind.app/

[–] 1 pt

Use elasticsearch if it's a proper web app with database. It's not difficult to set up but it might be difficult to get good results.

It just uses a lot of resources (CPU and RAM), which is why a lot of smaller sites don't use it.

[–] 1 pt

It has been a long, long time since I've coded websites but I'm pretty sure you could display within an iframe, update the contents with Javascript or something similar.

[–] 1 pt

I assume using an external engine may be out of question.

It depends on a variety of factors but this is what I think of straight away; you would need a server-side script engine like PHP to do this for you:

  1. If your site holds the content in a database like MySQL or PostgreSQL or whatever, it is a matter of a "SELECT" statement.

  2. Or if you have it all in various HTML files, you need PHP to scan all your files.

You may also need to consider caching to improve performance.

So if you have the possibility to use PHP or something on the server side it might be done in a day or so, depending on how "noob" you are.

Lykke til.

[–] 0 pt

Haha yeah option one seems the way to go!

Takker!

[–] 1 pt

A keyword search of a db column isn't that hard.