> Thanks for your reply. yeah, an additional query with > the boost value will > work. > > However, I just wonder where you get the information that > BoostQParserPlugin > only handles function query? > > I looked up the javadoc, and still can't get that. > This is the javadoc. > > > Create a boosted query from the input value. The main value > is the query to > be boosted. > Other parameters: b, the function query to use as the > boost. > > > This just say if b value is specified it is a function > query.
As you and wiki said, b is the "function query" to use as the boost. > I just don't > understand why dismaxParser has both bf and bq, but for > BoostQParserPlugin > there is only bf equivalent. I don't know that :) However optional clauses with LuceneQParserPlugin will do the same effect as dismax's bq. > Another question is by specifying localParameter like that > in query, does it > mean to use the default LuceneQParserPlugin primarily and > only use > BoostQParserPlugin for the content with the {}? Not only for BoostQParserPlugin. http://wiki.apache.org/solr/LocalParams http://wiki.apache.org/solr/SimpleFacetParameters#Multi-Select_Faceting_and_LocalParams