Is it possible that Farm A can access or search the documents that reside in Farm B? If yes, what should be the setup or topology?
Yes, you have two options:
- Use the already configured search index of Farm A (search federation)
- Crawl Farm A from farm B
You can get more information about configuration here: http://technet.microsoft.com/en-us/library/jj219577.aspx#Section12