Skip to content

USCbiostats/annoq-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask wrap for es based annotation search API

Installation

pip3 install -r requirements.txt
python3 api.py 

For errors check logs in ./log.

Port and IP configures are in api.py.

Elasticsearch name and passwd in setup_es.py.

e.g. cd es_scripts sh show.sh

  • show.sh : show first 10 docs
  • region.sh : region query
  • region_fields.sh : region query with specific fields
  • region_size.sh : region query with size and from for pagination
  • structure.sh : show fields tree structure

response

{
  "took": 6,
  "timed_out": false,
  "_shards": {
    "total": 1,
    "successful": 1,
    "skipped": 0,
    "failed": 0
  },
  "hits": {
    "total": {
      "value": 264,
      "relation": "eq"
    },
    "max_score": 0,
    "hits": [
      {...},
      {...}
    ]
  }
}
  • response.hits.total.value is total result number
  • response.hits.hits is data

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published