Open buniello opened 3 months ago
The facet search endpoint is available in the dev environment with a very minimal dummy dataset.
To query the endpoint, you need a query (i.e. what the user searches for) and an entity name (i.e. "target" or "disease") depending on whether the search is for target facets or disease facets. Here is an example for search for target facets with the query "ad":
query facetSearch{
facets(queryString: "ad", entityNames: ["target"]){
hits {
id
highlights
label
category
entityIds
}
total
}
}
There are two results, the highest ranked is for a facet label and then there is a facet category:
{
"data": {
"facets": {
"hits": [
{
"id": "fbVLn44BRu9hS_8PZd8Y",
"highlights": [
"<em>Adhesion</em>"
],
"label": "Adhesion",
"category": "Target Classes",
"entityIds": [
"ENSG00000168036"
],
"score": 73.364746
},
{
"id": "ebVLn44BRu9hS_8PZN-u",
"highlights": [
"<em>Advanced</em> Clinical"
],
"label": "Advanced Clinical",
"category": "Tractability Antibody",
"entityIds": [
"ENSG00000066468",
"ENSG00000113721"
],
"score": 69.14932
}
],
"total": 2
}
}
}
Please let me know if you have any questions about this.
UI feature for developed facets for AOTF should now be scoped - tagging @carcruz to initiate discussion
As a user, I would like to be able to filter the "Associations on the fly" content by using similar facets to the ones implemented for the old associations page - left hand side of the main table. While some of the filtering functionalities have now been replaced by the new Target Prioritisation View, still most of them need to be re-thought. This ticket is to capture the BE implementation.