Closed dhimmel closed 7 years ago
@dhimmel this suggestion_from parameter is just something I suggested earlier how we might implement, but never actually implemented. We are currently implementing a more flexible solution to allow users to define a custom query for those relatively complicated query cases cannot be easily formulated using the existing query syntax. We will let you know once it's in-place (expecting one or two weeks).
For the particular example above, you can actually use this query right now:
https://mygene.info/v3/query?q=symbol:GABA*^10&species=human&entrezonly=true
this suggestion_from parameter is just something I suggested earlier how we might implement, but never actually implemented.
My bad!
https://mygene.info/v3/query?q=GABA*&suggest_from=symbol^10&species=human&entrezonly=true intends to partial search by gene symbol for the term
GABA
, so all results should have an official symbol that starts withGABA
.However, the following payload is returned:
It looks like only three of the hits actually match the symbol field. Is this a bug or am I misunderstanding the effect of the query?
Also is there documentation of
suggest_from
and all of its options?