Hi Erik, I am answering on behalf of Victoria, my team leader.
We needed (note the past tense!) to use the nice query parsing machinery of dismax as well as its disjunction scoring. We also wanted to flavor each sub-query dismax generates with payload values (for boosting) that were encoded at index time. For that purpose we basically extended QueryParser with a new subclass that overrides the 'newTermQuery' method to return a PayloadTermQuery object instead of a TermQuery object. As to your question, the whole purpose of this is to do our version 'weighted synonyms'. Think about this: Bill is still William, but more/less common, so getting a document with a guy named William, when you searched for Bill is still good, but not the same in terms of scoring. I would be more than willing to add our code to Solr source, if it is of any interest, and of course if there wouldn't be any legal issues with mgmt. Thanks, Amit > Victoria, > > An example of specifically what types of queries you'd like to do > would be helpful. > > Using nested queries you can leverage dismax and your custom query > parser together, which may be what you're looking for. See this > article for details on nested queries: > <http://www.lucidimagination.com/blog/2009/03/31/nested-queries-in-solr/ > > > > > Also, I'm curious about your query parser that uses payloads. How > does it work? There's a PayloadTermQuery parser attached to the > following issue, and I'm wondering how your work might align with that > implementation: <https://issues.apache.org/jira/browse/SOLR-1485> > > Erik > > Hi, > > We are using payloads for score boosting. For this purpose we've > > implemented custom boosting QueryParser and similarity function. We > > followed > > http://www.lucidimagination.com/blog/2009/08/05/getting-started-with-payloads/. > > > > On the other hand, we'd like to use dismax query handling because of > > its benefits in several fields search. > > How can we make dismax use our custom QueryParser? > > > > Thanks! > > > >