-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feature/404 send full text for search #65
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've had a play around with this locally, and I found some slightly odd behaviour in the journal and institution boxes:
-
When searching "journal of" I got results immediately after typing "jo" which makes sense, because that's not a stop word. That found a bunch of journals like JOM and JOR. But after I got to typing "jou" those results stayed, and I wasn't sure why.
-
I found if I typed
the journal of
(with the trailing space) it would give me search results. Perhaps we need to strip whitespace as part of the stop word stripping? -
If I type "university of o" in the institution box I don't get a result, then if I type
university of ox
in the box, then I get to see Oxford. If I then delete thex
leaving me withuniversity of o
it is still showing me Oxford as an option. In fact it continues to show me Oxford until I get down toun
and then it give me a different set of results.
I'm not sure exactly what the fixes here are - they are mostly about user expectation rather than being technically correct, I think. I will try to have some thoughts about what behaviour might make most sense.
The rules for auto completion when typing in the journal, funder or institution boxes
For journal auto suggestion, if the user wants to search for For institution auto suggestion, if the user wants to search for For funder auto suggestion, if the user wants to search for One possible improvement, would be to start pattern matching after 2 characters to match with the auto completion expectations. So match jo, jou.... and un, uni, univ.... By doing so though, there will be no auto suggestion until the user types The best way to handle this I think, is to not strip any words and use the garbage in, garbage out approach |
I would remove the substrings of "journal of" and "university of" (jou, univ, etc) from our stop list, as they could be substrings of other words that the user is trying to type. Like, I guess, "JOUrney" or "UNIVerse", and we may inadvertently prevent them from searching those terms. Perhaps what we really need to do is go back to the original issue and hash out exactly how we want this to work and get agreement from the whole team? |
This is a PR for https://github.com/antleaf/jct-project/issues/404
It sends the full text to the API, but the auto suggest doesn't kick in until something other than the stop words are typed
For example: Journal of Nu or University of Ca