On Tue, Feb 26, 2008 at 11:24 PM, Vijay Khurana <[EMAIL PROTECTED]> wrote: > Thanks for the response Yonik. > The content source field is a single valued field. Sorting the results won't > work for me as the content source values are arbitrary strings and there is > no set pattern i.e it can be axd or xbc or abc def. All I know at time of > the query that results for content source axd should appear before > the results for other content sources.
OK, then if you are sorting by score, you could manipulate it such that anything with the content_source you are looking for will come first. qt=dismax&q=foo&fq=content_source:(ABC OR DEF)&bq=content_source:DEF^1000 bq is a boosting query... an optional part in lucene syntax that is added to the generated dismax query. -Yonik