You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Omar Didi <od...@Cyveillance.com> on 2005/04/04 22:18:49 UTC

filter search

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


Re: filter search

Posted by Chris Hostetter <ho...@fucit.org>.
:
: 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?.

There was a recent thread regarding this issue, with several
implimentations suggested, each with different pros/cons depending on
the specifics of your situation...

http://mail-archives.apache.org/mod_mbox/lucene-java-user/200503.mbox/%3c6fb33c15050329160136d91ee2@mail.gmail.com%3e



-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org