Roshdy23 / Playmaker

Playmaker is Crawler-based search engine that demonstrates the main features of a search engine (web crawling, indexing and ranking) and the interaction with it along a friendly user interface.
3 stars 1 forks source link

added an interface for dealing with mongo database #2

Closed mohamedselbohy closed 4 months ago

mohamedselbohy commented 4 months ago

Added jar files to Dependencies folder to ease the process of installing missing libraries

once you all downloaded it make sure to remove it from github for the sake of the size of downloads and uploads!

To deal with MongoDatabase class

we have just one database "Playmaker". we have only two collections leaving the door open for expansions I left you the choice on retrieving the collection to yourself.

To retrieve a collection:

Mongo Database = new MongoDatabase(); // should be called once during the single process
String collectionName = "Indexes"; // or "Content" or the name of any new collection to be formed
MongoCollection collection = mongoDatabase.getCollection("collectionName");