-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with the Advanced Search feature of OrgBook #567
Comments
Hey @ianco -- wasn't sure what repo to use for this... |
We should move this ticket to bcgov/aries-vcr since that's where the affected code lives at the moment. |
Is it in Aries or the OrgBook instance? I thought it was BC specific -- especially the lack of localization data. But I guess at least some of it is Aries VCR. I'm interested where the line is drawn. I'll move it. |
Options on indexing the BN to add to the search:
Desired behaviour?
|
My preference would be that Legal Name, BN and BC Company Number all work in auto-complete (e.g. are names) and that in the search results, anything that is flagged as a "name" appears in the search results. regardless what term was matched. |
Just some thoughts to get the discussion rolling on this but please correct me if I'm wrong on anything.
The
Should autocomplete be enabled for advanced search? If so then it appears that the issue of indexing the BN comes into play here:
and
The other option is utilizing the new category search feature (#563) and perhaps adding a field to search by BN (although one could question the UX of that when search already allows one to lookup topics by the BC Registries Number)
I think this relates to using the secondary category search endpoint. By introducing another search function, would there need to be an additional control introduced to indicate what search to perform (i.e. either name, or category, or both)? In the case of both search type executed, which results take precedence, the name, or the category results? I haven't quite taken a look at that latest PR but I'm inclined to understand how the category search endpoint works. I don't currently have reason to believe that adding BN as a facet would make sense since they are unique for all businesses.
I would need to investigate further into how SOLR indexing works for autocomplete. |
I don't think there should be any auto-complete in advanced search, and that it be possible to not include any text in the search by name field in advanced search. At least one of the advanced search fields needs to be used and the results need to paged. As noted -- my strong preference is that anything that is a unique "key" for an entity should be a "name" in Aries VCR in general, and therefore in OrgBook BC, Legal Name, BC Reg ID and BN are all "names". Likewise, I think an Aries VCR (not OrgBook BC, but OrgBook BC would use it) is that any topic result would include a "names" array, that would have each name listed. Note that I'm talking about both the abstract data model (topics, categories, attributes) that Aries VCR supports (where Aries VCR is agnostic to the credentials issued to it) and specifically how that abstract model data is applied for the BC Registries use case. |
Turns out, the issue here has to do with providing a localization label (ex |
Should we begin the process of porting API calls over to V3? |
Separate issue. Right now Advanced Search is broken, so we need that addressed first. |
If we need to make any back-end API changes then we should make the changed in the V3 API's. I suspect we'll wind up with the advanced search using the V3 API's and the rest of the app still on V2 |
Sorry - if that question was in the context of advanced search, absolutely, we should be using v3. I thought you are asking a more general question about the rest of the site/webapp. |
I tried the Advanced search with and found some issues vs. how I expected it to work. Some are specific problems, some may be how the features is intended to work.
In the name field there is autocomplete, which I don't think is how it is supposed to work. What is needed is a search that allows the user to set all the other parameters show the search results for that. If autocomplete is active, is it taking into account the other field settings? It's not -- when I type a string (e.g. "can") I get the same autocomplete whether the credential type field is set or not. If not, that eliminates the purpose of advanced search.
I would have expected (although not clear) that I could leave the "Name" field blank to find all the companies that have a given credential type. With paging, this should work, I would think.
The text was updated successfully, but these errors were encountered: