: For a particular requirement we have - we need to do a query that is a : combination of multiple dismax queries behind the scenes. (Using solr 1.4 : nightly ). ... : Creating a custom QParser works right away as below. ... : Curious to see if we have an alternate method to implement the same / any : other alternate suggestions to the problem itself.
if your sets of q params are coming from the same source as your sets of qf params (ie: some complicated client code) then i probably would have just written a parser that had special markup for indicating a DisMaxQuery and let the client pass a complex string (that way you won't have to worry about changing the logic in your QParser if you get a request to structure the DisMaxQeries in a diffenret super query, the client can just do the restrcuturing). But if you're still in the spirit of the dismaax handler (query strings come from clients, qf and pf come from index owner) then i think you made teh right call. -Hoss