Skip to content

akhons/SearchEngine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

SearchEngine

From the home jsp file we are expecting 2 inputs- URL to be webcrawled and a keyword to search in the text contents of this URL. used sendredirect to redirect control to a servlet file which is responsible for webcrawling that URL. used Jsoup library in java to do the webcrawling. Stored the text contents we got after webcrawling to a mysql database using Hibernate with 'id' as a primary key, 'Url' column for storing the searched URL and a 'Text_data' column for storing the text contents of the URL. A pattern searching algorithm was required to search if a particular keyword was in the text contents of the URL. From GeeksForGeeks I found an algorithm called 'Boyer Moore algorithm' for pattern searching and implemented it into my code. Takes URL and keyword as inputs- image

Just prints "Data Found!!!" on the web page at "http://localhost:8081/SearchEngine/KeySearch" if the keyword is present in the contents of the URL.

image

Data stored in mysql database - image

extracted the data from the database into another file- image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published