-
Notifications
You must be signed in to change notification settings - Fork 20
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
Partial results matching #4
Comments
Copying over relevant comments from #2. By @cgreene:
By @cgreene:
By @dhimmel:
|
@cgreene We currently do not apply, at least not explicitly, that ngram filter when doing the indexing. The autocomplete feature we implemented in this widget is made possible through the wildcard query (by adding "*" at the end of the query term), which seems working just fine. If there is enough use cases, I'm also considering to expose prefix query to our services, probably more efficient than wildcard query. |
@newgene can you give us an example that uses the wilcard ( |
@dhimmel wildcard query works on specific field only: |
@dhimmel @cgreene just want to let you know that we are now working on an improvement on our query endpoint, so that you can make such query (for autocompletion) easier. It might look like this:
So stay tuned, we should have this rolled out soon. Let us know if you have any other feedback. |
@newgene, thanks for the great support. Your suggested syntax looks nice. We will probably also restrict to human and entrez genes like:
Confirming that the wildcard search is implied by specifying One more thing, I think we want to make sure we can encode the query term so it's a valid URL. So some guidance on how we should encode the URL would be appreciated. I.e. in javascript do we use |
@dhimmel you should only need to encode the value passed to "q" parameter. To encode in Javascript, this might help: http://stackoverflow.com/questions/332872/encode-url-in-javascript |
@cgreene @dhimmel, it took us a while, but we now have rolled out (thanks to @cyrus0824 's hard work) a new feature of "user queries" to MyGene.info, which is highly relevant to the use case in this issue. Basically, we now allow users to define a customized query (aka "user query") to fit their very specific use cases, where the default query feature cannot satisfy perfectly. This is how it works:
All right, let us know how you guys think. The example "prefix" user query is pretty much added for the specific use case you guys mentioned in this issue. Note that we boosted up symbol matches as well. Feel free to make changes to fit what you want (can add you two to this repo for write permission). |
We are considering using mygene.info to serve as a search backend for genes in the cognoma project front end (more discussion: cognoma/core-service#29 (comment) ). One use case that we have is an autocomplete style query. For this, we'd need partial queries to be supported. Is it possible to enable this with the current API either through the standard querystring or a specific string?
There is a bit more discussion of an ngram field in https://github.com/SuLab/mygene.info/issues/2
Thanks!
The text was updated successfully, but these errors were encountered: