Use the sitesDatabase
Index attachments
Build tika in
Only try to index attachments on attachment docs
Encode the attachment name