: With this structure i think (correct me if i am wrong) i cant search for all : attachBody_* and know where the match was (attachBody_1, _2, _3, etc).
correct : I really don't know if this is the best approach so any help would be : appreciated. one option is to index each attachemnt as it's own document *in addition* to indexing each email will all of hte attachment text in a single "atachments" field. that way you can search for all emails where "Bob" is mentioned in an attachment -- but if you want to know which specific attaahments mention "bob" you can do that search as well. -Hoss