script to populate _terms field in a stream of documents
oops, cant  an empty list of queries