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

Adding search API at /search to minerva #234

Merged
merged 20 commits into from
Jul 11, 2019
Merged

Adding search API at /search to minerva #234

merged 20 commits into from
Jul 11, 2019

Conversation

goodb
Copy link
Contributor

@goodb goodb commented Jul 11, 2019

No description provided.

goodb added 20 commits June 25, 2019 13:28
though note it currently give multiple responses per model if a single gene class is used on more than one instance within that model.
works for requests for genes, goterms.  Could be generalized further in terms of input parameters - e.g. a generic 'type=.."  instead of goterm, gene_product etc.
Not much difference really.  All tests in minerva server pass.  Local testing with Noctua stack is working without error.  Note that there is no longer a way to set conf.requestBufferSize  .  See here for info. on the upgrade.
Added parameter to API and sparql template.  Updgraded jetty dependency to 9.2.3.v20140905 .  (from 7).  Note that jetty 9.4 will break it.
still leaving as union in the query.
returns models more recent than the requested date.  Date must be in 10 character format: yyyy-mm-dd  e.g.  2019-03-05
Allows client to iterate through result blocks of arbitrary size.  Client decides how many to add to a 'page' in their context.
e.g. to iterate through results 2 at a time, query like this, in order:
http://127.0.0.1:6800/search/?date=2019-03-06&offset=0&limit=2
http://127.0.0.1:6800/search/?date=2019-03-06&offset=2&limit=2
etc.
you will get the same thing you would get from the following request, but in two steps instead of one.
http://127.0.0.1:6800/search/?date=2019-03-06&offset=0&limit=4
not all models have provided_by or modelstate annotations.  This really impacts the text search service.  By making these fields optional, made the searches with text much faster.  Works nicely even on full noctua-dev model set.
@goodb goodb requested review from balhoff and kltm July 11, 2019 21:45
@kltm
Copy link
Member

kltm commented Jul 11, 2019

Clean merge!

@kltm kltm merged commit 41879e6 into dev Jul 11, 2019
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