Closed will-moore closed 2 years ago
There is an endpoint (serachforvaluesusingkey
) that returns what you want,
For example, to get the available values for the Organism
attribute, you can use this link:
https://idr-testing.openmicroscopy.org/searchengine/serachforvaluesusingkey/?key=Organism&&resource=image
It has a typo fix and should be searchforvaluesusingkey
Ah - OK, I see that has the counts, but it doesn't allow me to filter by Value, so it's not going to work for autocomplete.
E.g. https://idr-testing.openmicroscopy.org/searchengine/searchforvaluesusingkey/?key=Compound%20Name&&resource=image has 1856590
items, but only the first 9999 are returned so I can't filter in the JS code.
Moved this to https://github.com/ome/omero_search_engine/issues/11
I'm using this endpoint to provide auto-complete for "Any" value
serachusingvaluesonly/?value=pdx&resource=image
which is nice as it gives counts for the results. (also at https://github.com/ome/omero_search_engine_client/pull/4)
But when it comes to auto-complete for a particular key, we use:
get_values/?key=Gene%20Symbol&resource=image
which doesn't filter by any value and doesn't have any counts.It would be nice to have an endpoint like
serachusingvaluesonly
but using "key" too.