agile-learning-institute / mentorHub-search-api

A Typescript API that uses data from the backing Elasticsearch Database
Apache License 2.0
1 stars 0 forks source link

Look into 2-phased search #18

Open MyNameIsAndrew-Mangix opened 6 months ago

MyNameIsAndrew-Mangix commented 6 months ago

You search based on the query parm, and if you have a high-confidence match you do a second search using the matched OID - in this way when I search for John Smith, you get a high-confidence match on John Smith's People document, so you do a second search with John's OID and find all of the objects related to John (A Partner he is a contact for, and People John mentors, a Plan document he updated yesterday) - Or I do a search that gets high confidence in a Resource, searching for that OID across other collections shows me the people who have used that resource, ratings, and reviews of that Resource, etc.