When an xml file gets added to a collection, via the java admin client or the web-based tool, subsequent queries (which are intended to bring back a complete list of documents in that collection) show an incomplete list. Re-indexing fixes this. Martin has a query in to the eXist list regarding the issue.