Click here to Skip to main content
15,907,392 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I create a search box in our web site.when i search a text in search box then search a text in my website and get all link in my website who has contain the text.

without google search..

What I have tried:

I create a search box in our web site.when i search a text in search box then search a text in my website and get all link in my website who has contain the text.

without google search.......
Posted
Comments
F-ES Sitecore 7-Jan-19 6:22am    
google has spent over a decade getting this working, not quite sure what you're expecting here, a few lines of code? The answer depends mainly on where your text comes from....is it in a database somewhere or only on files? If it's in the database then search that, if it is on files then you'll need some way of searching files, or of indexing them. If you don't even know where to get started on this then I'd probably look for some kind of off-the-shelf system that indexes files (maybe lucene or similar).
MadMyche 7-Jan-19 11:11am    
Agree 100%
Mack MJ 7-Jan-19 23:11pm    
i am not searching a database !!
see when i am searching any text in searchbox who has contain a aspx page then get a all link the page those contans a text.
[no name] 8-Jan-19 0:19am    
If this is "your" site then you should be able to scan your "source code".

Just look for HREF's.
Mack MJ 8-Jan-19 2:39am    
thanks but please bref..

1 solution

Hi,

You are not using google search because of ads on your page right.
If you use the rest-api json of google's custom search you have 100 search queries a day for free and you can display them without any ads on your page


This is only the way to search a text in the website.

or else you have to maintain database for the same and try to get text from database.
 
Share this answer
 
Comments
Mack MJ 8-Jan-19 2:37am    
thanks.
I think without using google search i create ..
Prasad Nikumbh 1-Dec-20 20:50pm    
:-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900