lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Tschumy <b...@otherwise.com>
Subject Re: Retrieve all terms
Date Wed, 18 May 2005 16:52:58 GMT

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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message