SoftwareEngineeringStudyProjects / KnowYourKnowledge

Combination of Personal Knowledge Management and Learning Management System. This is a study project aimed at creating relatively big codebase for object-oriented programming and similar courses.
MIT License
2 stars 4 forks source link

Implement a mechanism to compare single Knowledge Item to Search Criteria #31

Closed kzhereb closed 1 year ago

kzhereb commented 2 years ago

Should return double from 0.0 (no match) to 1.0 (full match) For now, just return 0 or 1?

kzhereb commented 2 years ago

For collections, this mechanism takes into account only the item itself and not its children. So search for "test" in Directory("dir", [File("test")]) returns 0. But search for "test" in Directory("test", [File("file")]) returns 1