I have this application where I indexed different file formats and used "phraseQuery" on the "body" of the documents to do the search. Now I have added email archives to the index. I have to use "TermQuery/MultiFieldQuery" to search the emails. For a user entered query I have to search both the documents and email archives to bring back results. What will be the best way to approach it.

Will it be better to have two different indexes - one for all files and one for emails? If so can I have one IndexSearcher open to query both the indexes? How will I do it? When the Hits comes back from both the search how will it be organized?

Is there another way to approach it. Any suggestion?

thanks,
suba suresh.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to