Skip to content
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

Add fulltext indexing to ontology store #244

Merged
merged 20 commits into from
Aug 8, 2023

Conversation

rbuels
Copy link
Contributor

@rbuels rbuels commented Aug 1, 2023

Adds full-text indexing to the ontology store and uses it for autocomplete.

Good results, pretty fast and effective.

This also has a Jest upgrade in it that was part of my attempts to make inline snapshots work again. Jest inline snapshots no longer work since we upgraded to prettier 3 (probably related to prettier/eslint-plugin-prettier#562, seems likely that a fix will be coming soon)

@rbuels rbuels marked this pull request as ready for review August 1, 2023 22:27
@rbuels rbuels changed the base branch from ontology_store to main August 2, 2023 17:53
@rbuels
Copy link
Contributor Author

rbuels commented Aug 2, 2023

@garrettjstevens ok I think this is good to go

@garrettjstevens
Copy link
Contributor

Wow, that does make it a lot faster. I have noticed one thing, though, that can make the search results a bit unintuitive. For example, here's a search for "calcium" before this branch:
image

And in this branch:
image

It looks like the top terms that pop up in this branch do have "calcium" in their description, but not the label, so it's maybe not clear to the user why they show up. Maybe the indexing should rank search results with the term in the label above those with the term in the description.

@rbuels
Copy link
Contributor Author

rbuels commented Aug 8, 2023

@garrettjstevens i think this is pretty good, have another look and merge if you like

I did quite a bit of work to make the ranking and result display better.

@garrettjstevens garrettjstevens changed the title ontology store fulltext indexing Add fulltext indexing to ontology store Aug 8, 2023
@garrettjstevens garrettjstevens merged commit bb0f8bc into main Aug 8, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants