TeamMentor / TM_4_0_Design

Repo Holds TM 4.x issues
4 stars 3 forks source link

Search logic should continue searching for titles/words even if exact match is found on the query #1090

Closed romichg closed 9 years ago

romichg commented 9 years ago

Currently if the search finds that a search term matches exactly the name of the query(keyword) it will stop processing the search. This results that if an article title or any other relevant article is not in the query, it is not displayed. The logic should be that the search continues, but setting the exact match article scores to be the highest, such that they are shown first. This logic should also allow the word scores to add/subtract from the score so that most relevant articles are show up on top. For example: Search for "System Hardening", which exactly matches a query, should mark all the articles in the query with score of 100, ensuring they end up on top. However the word search should also add + 30 to the score for the article that is titles "System Hardening" making it show up first.

michaelhidalgo commented 9 years ago

Working on it!.

michaelhidalgo commented 9 years ago

This PR is related https://github.com/TeamMentor/TM_4_0_JSON_Data/pull/5

romichg commented 9 years ago

this is fixed.