OpenTreeOfLife / oti

indexing service for the OpenTreeOfLife nexson repository
Other
1 stars 0 forks source link

possible problem indexing nearly empty studies #23

Closed mtholder closed 10 years ago

mtholder commented 10 years ago

I'm trying to get the index on oti up to date, but some of the studies won't index. The first one I looked at is nearly empty, but it does has biblio data. So I thought that it should be in the index. My call:

curl -X POST -H "Content-Type":"application/json" -H "Accept":"application/json" http://ot10.opentreeoflife.org/oti/ext/IndexServices/graphdb/indexNexsons --data '{"urls": ["http://ot10.opentreeoflife.org/api/v1/study/pg_561.nexson?output_nexml2json=0.0.0"]}'

the response is:

{u'indexed': [], u'errors': {}}

and the study does not appear in the response to a subsequent http://ot10.opentreeoflife.org/oti/ext/QueryServices/graphdb/findAllStudies call.

chinchliff commented 10 years ago

Right. I think oti is set up not to index studies that have no trees. But we clearly should be doing that.

chinchliff commented 10 years ago

Ok. Requirement removed.

curl -X POST -H "Content-Type":"application/json" -H "Accept":"application/json" http://devapi.opentreeoflife.org/oti/ext/IndexServices/graphdb/indexNexsons --data '{"urls" ["http://ot10.opentreeoflife.org/api/v1/study/pg_561.nexson?output_nexml2json=0.0.0"]}'
{
  "errors" : {
  },
  "indexed" : [ "561" ]
}