lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ravi" <>
Subject RE: Suggesting refine searches with Lucene
Date Mon, 13 Feb 2006 09:52:48 GMT
Hi ,

I have implemented by using query "mergeBooleanQueries" method... in this
approach I have created one POJO class of RefineQuery which contains one
variable called Query and I will set whenever I get a search..
And next time if it is a refined search I will merge current query with  the
refinedquery object and get new query and pass to lucene and set the new
query to refined search object .... this is working fine.. let me know if
have any further ideas or any new technique to implement refined search

     	Query q2		=
Query.mergeBooleanQueries(new Query[]{ 	objRefineQuery.getQuery(),
booleanQuery });
    	hits 	=;
	hits	=; 

public class RefineQuery {

	private Query   query = null;

	public Query getQuery() {
		return query;

	public void setQuery(Query query) {
		this.query = query;

	public String toString(){
	  return query.toString();	

Ravi Kumar Jaladanki

-----Original Message-----
From: Chun Wei Ho [] 
Sent: Monday, February 13, 2006 3:05 PM
Subject: Suggesting refine searches with Lucene


I am trying to suggest refine searches for my Lucene search. For
example, if a search turned out too many searches, it would list a
number of document title subsequences that occurred frequently in the
results of the previous search, as possible candidates for refining
the search.

Does anyone know the right/any approach to implementing this in a
Lucene-based search app?



To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message