dmd2588 / idb

0 stars 0 forks source link

Sort search results #89

Closed xuset closed 7 years ago

xuset commented 7 years ago

The search results should be sorted with keyword counting

Blocked by: #88

xuset commented 7 years ago

There is no way for sqlalchemy to return the most relevant results first. With the current queries it is very likely that the query leaves out more relevant results (results with more keywords) due to sql not being expressive enough to do what we want. So we have to retrieve all the items the query returns then sort them with keyword counting then truncate to the page size

xuset commented 7 years ago

Won't fix for now. We can reopen later