On May 18, 2005, at 9:54 AM, Albert Vila wrote:

Hi all,

I need to retrieve all terms from an specified field filtered for another field. For example,

 Document 1 -> <contents, " document 1 content">
                         <language, en>

 Document 2 -> <contents, " document 2 content">
                         <language, fr>

 Document 3 -> <contents, " document 3 content">
                         <language, fr>

 Document 4 -> <contents, " document 4 content">
                         <language, en>

Then, I want to retrieve all terms from the contents field, but only the ones from the documents matching the language=en.

Is it possible with lucene?
Thanks

Unless I'm misunderstanding your request, not only is it possible, this is what Lucene is designed for. Just search for all documents with language=en and then iterate over the hits extracting the contents of the desired field.


--
Bill Tschumy
Otherwise -- Austin, TX
http://www.otherwise.com



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



Reply via email to