new couchdb-lucene index function for callflow, robust to incomplete data