Hi All,
I have mail as Docuement  and mail's attachments as childDocument  in solr.
 I am trying to write spring data application to search in all fields and
return mail document.
There is one solution :
{!parent which="<MAIL DOCUMENT IDENTIFIER >" v=<MAIL ATTACHEMENT SEARCH>}

but for this to work->  "<MAIL ATTACHEMENT SEARCH>" keyword should only be
present in attachement document(child) and not in Mail docuement(parent).

is there any way via which
1) We search for any keyword and if it is present in mail attachment
document its respective mail (its parent) should be returned.
( I have used copy field '_text_" which copy all fields data in it.)
2) If we Search for any specific field in attahcment its parent should
return . For example "get mail document whose attachmentName:"abc.txt"".

I want to know how to implement this in Spring Data. (there is some method
called getParent() however I am not sure how to use it).

Thanks ,
Rushikesh Garadade

Reply via email to