Hi, You can boost an individual query. For example Assuming your query to be a boolean query containing a term for the creator BooleanQuery query = new BooleanQuery(); . (any other part of your query) .
TermQuery termQ = new TermQuery(new Term("creator", user)); termQ.setBoost(3.0f); //boost this query by factor of 3 query.add(termQ, Occur.SHOULD); This will make sure that any document matching creator with user will be given more boost. Prabin Meitei toostep.com On Thu, Dec 11, 2008 at 8:52 PM, Dalvi, Rajesh <[EMAIL PROTECTED]> wrote: > Hello, > > I am indexing creator information for each document. When I query with > given User, I want documents created by the given user should score > higher. How can I do this? > > Thanks, > Rajesh >