On Fri, Apr 17, 2009 at 2:02 AM, ashokc <ash...@qualcomm.com> wrote: > q=(+(content:umts)+OR+(title:umts)^2+OR+(urltext:umts)^2)+AND+(doctype:white_papers)^2+AND+(filetype:pdf)^2 > [...] > What we need is for the white_papers & pdfs to be boosted, but if and only > if such doucments are valid results to the search term in question.
Make the entire query part mandatory and the doctype boost optional. Assuming that the default query operator is OR... this would look like: +(content:umts title:umts^2 urltext:umts^2) doctype:white_papers^2 filetype:pdf^2 You may also want to look at the dismax query parser, which can make constructing queries like this a lot easier. &defType=dismax &q=umts &qf=content title^2 urltext^2 &bq=doctype:white_papers^2 filetype:pdf^2 -Yonik http://www.lucidimagination.com