I\'m using caml query to select all documents which were modified or added by user. Query runs recursively on all subsites of specified site collection.
Now problem is I
Dave T.'s answer didn't work for me but taking it as an inspiration here's what I came up with:
0x0101
The main problem is that we can only know ContentTypeId on a site level, because when a content type gets added to a list/library it becomes a list content type and its ID is appended with another GUID (0x010100...). And there's no NotBeginsWith condition in CAML, so we can not filter out folders, but we can include documents only which site content type id is 0x0101.
The solutions with FSObjType field don't work for me because I have libraries with far more files than a threshold so all the fields in the query must be indexed and I haven't found a way to index this field.