lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: filter search
Date Tue, 05 Apr 2005 01:02:55 GMT
Hi Omar,

You could iterate through hits (results), pulling out a document at a
time and checking the appropriate field (e.g.
field.endsWithIgnoreCase(".com") )

Otis

--- Omar Didi <odidi@Cyveillance.com> wrote:
> hi guys,
> 
> is it possible to filter the hits returned from a certain query?. for
> example if I have a search like this:
> 	Query searchQuery = queryParser.parse( query );
> 	Hits  results = m_searcher.search( searchQuery );
> is there a way to use the results and find out how many of the
> returned documents their url ends with com, and how many ends with
> net and so on... without the need to form a new query?.
> thanks.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 
> 

---------------------------------------------------------------------
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