Bug 264

Summary: [RecommendSys] Support to read multiple keyword
Product: MovieXXX Reporter: tomfong521
Component: MovieAnalysisEngineAssignee: salinang3-c
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: Normal    
Version: 1.0   
Hardware: PC   
OS: Windows   
Deadline: 2018-11-17   

Description tomfong521 2018-11-29 13:03:41 HKT
Details:
In v1 only single keyword search is supported. Multiple keywords can allow user to generate a more specific and ideal recommendation list.

Current behaviour:
- Only a single word can be accepted as keyword (e.g. "1998", "jacky")

Expected behaviour:
- More than one keyword can be accepted (e.r. "jacky,1998")
Comment 1 salinang3-c 2018-11-29 23:06:43 HKT
How to enhance:
- Added to instruct users about the format of keywords input. Accepted multiple keywords separated by a comma.
- Modified to perform 2d sorting for the results based on relevancy(keyword hit) then score

Expected behaviour
- More than one keyword can be read to generate recommendation
- Printed results that hit more keywords are listed before those which hit fewer keywords; among results with the same number of hits, results with a higher score are listed prior

Potential affected areas
- Recommendation

Affected versions
- >= v2

Testing steps
1. Edit a test database with four movies in it. Enter movie info to satisfy following (e.g. given keywords "german,1998"):
   MovieA: 0*hit(does not contain "german" nor "1998") score=8 
   MovieB: 1*hit(contains either "german" or "1998") score=6
   MovieC: 2*hit(contains both "german" and "1998") score=4
   MovieD: 2*hit(contains both "german" and "1998") score=7
   MovieE: 1*hit(contains both "german" and "1998") score=9
2. Enter "2" to select "Film Recommendation" in [System Home]
3. Enter "1" to select "Start New Recommendation" in [Office Box Prediction]
4. Enter keyword ("german,1998") to process recommendation

Expected results
- MovieD -> MovieC -> MovieE -> MovieB

Testing results
- MovieD -> MovieC -> MovieE -> MovieB