Closed Mottie closed 10 months ago
Currently, the way the GIDS API is handling automatching on their end is by matching the search term from the beginning as opposed to matching the term anywhere in the string. This is due to how they wrote the index. This is the response I've gotten:
searching for a substring would be less efficient and that endpoint has caused cascading performance issues from a quantity vs. response perspective.
aka, it would severely hamper performance if we began searching any other way. I believe, to implement autocomplete how we want, would take a serious overhaul of that system.
@cohnjesse is this something that the team can pick up if needed? Or is it a bug that doesn't have a clear pathway to resolution?
@saderagsdale This is still a problem, but ultimately an issue with the platform code. I did try to add a method to include a custom algorithm, but I was told it'd be better to fix the core matching algorithm.
I don't think we should close this ticket, but we don't need to be assigned to it anymore.
@saderagsdale it seems like it needs to be fixed at some point but there might not be a clear path forward. I would suggest we use a pre-built algorithm that works for what we need out of the box instead of doing our own. If what we are using doesn't fit the bigg then we may need to swap it out for something else. Also might be good to work with UX a bit to determine what exactly we are trying to achieve here.
Huge opportunity to coordinate with #sitewide-ia and other IA resources to consider taking a controlled vocabulary approach.
What happened?
This may be a problem with the autocomplete API. I don't know if the same API is used in multiple areas, but the behavior of the autocomplete seems similar.
The number of results is not consistent if you switch the word order:
GIBCT
Screenshot
![Screen Shot 2020-02-18 at 4 57 07 PM](https://user-images.githubusercontent.com/136959/74866983-70348780-5319-11ea-96ff-d7f1db2100de.png)Screenshot
![Screen Shot 2020-02-18 at 4 56 12 PM](https://user-images.githubusercontent.com/136959/74866889-3d8a8f00-5319-11ea-9a46-d9a6a211170a.png)New disabilities (form 526)
Screenshot
![Screen Shot 2019-11-27 at 3 49 13 PM](https://user-images.githubusercontent.com/136959/74867120-ba1d6d80-5319-11ea-9f2d-80c0d68682d4.png)Screenshot
![Screen Shot 2019-11-27 at 4 00 04 PM](https://user-images.githubusercontent.com/136959/74867288-036dbd00-531a-11ea-956b-e6c6756c03a7.png)Specs:
Steps to Reproduce
Using the GIBCT
New Disability
Desired behavior
The autocomplete should display results that are related to the query and be consistent no matter the word order of the query
Acceptance Criteria