Be able to search for related posts with a query URL

The topic is related to this question.

In short, I would like to be able to search and filter by post title when clicking on a query url. Example:

I have the following posts:
Build your own calculator machine v1.0
Build your own calculator machine v1.1
Build your own calculator machine v1.2

Another post contains the followig content:
(…)
You can click here to search for Java projects.
(…)

Then, ‘here’ will be converted into an URL to resolve a query search on my blog site to show all related posts that contains a specific search pattern/word(s). Like:

here: https://my-site.com/search?q=build-your-own-calculator-machine

And, the search result will show the user all posts matching with the content (post title) that was configured in the URL of the work ‘here’.