We have gotten feedback to use better search methods, full text search instead of regex, this should be implemented. At the same time we can improve the UI of the search and the displayed results.
The new search allows searching services through its title, summary and description, with more priority added to title, then summary, then description. Similarly searching through events will have priority for its title then description. Search results are sorted by how close they are to the search term. Lastly, friends are removed from the search results page as friends functionality is on pause.
Story Points: 2
Priority: High
Risk: Low
Tasks:
[x] Remove search with regex and implement with Text Index - 2 hrs
[x] Improve the UI to be consistent with the services and events page
[x] Update the tests for the get function for both services and events
[x] Write Demo Steps
[x] Get Customer Sign Off
Demo Steps:
Pre-conditions:
Run these 2 commands on mongo:
db.services.createIndex( {serviceTitle: "text", serviceSummary: "text", serviceDescription: "text"}, {weights: { serviceTitle: 3, serviceSummary:2, serviceDescription:1 }})
We have gotten feedback to use better search methods, full text search instead of regex, this should be implemented. At the same time we can improve the UI of the search and the displayed results.
The new search allows searching services through its title, summary and description, with more priority added to title, then summary, then description. Similarly searching through events will have priority for its title then description. Search results are sorted by how close they are to the search term. Lastly, friends are removed from the search results page as friends functionality is on pause.
Story Points: 2 Priority: High Risk: Low
Tasks:
Demo Steps:
Pre-conditions: Run these 2 commands on mongo: db.services.createIndex( {serviceTitle: "text", serviceSummary: "text", serviceDescription: "text"}, {weights: { serviceTitle: 3, serviceSummary:2, serviceDescription:1 }})
db.events.createIndex( {eventName: "text", description: "text"}, {weights: { eventName: 2, description: 1 }})