Thank you for your answers. I have a Map<docId, score> and want to boost the score of that documents during search time.
In my example i get that map inside ValueSource and boost the matched documents score. In the query if {!graph} is added then it will return boosted query otherwise it will return regular list. For this design , which classes should i extend? Or how can i solve that issue? Regards, Parvin On Thu, Dec 29, 2011 at 1:07 AM, Yonik Seeley <yo...@lucidimagination.com>wrote: > On Wed, Dec 28, 2011 at 2:16 AM, Parvin Gasimzade > <parvin.gasimz...@gmail.com> wrote: > > I have created custom Solr FunctionQuery in Solr 3.4. > > I extended ValueSourceParser, ValueSource, Query and QParserPlugin > classes. > > Note that you only need a QParserPlugin implementation for top level > query types, not function queries. > With just a ValueSourceParser and ValueSource implementation, you can > use the custom function as a function query. > > Example: > q={!func}graph("myparameter") > > -Yonik > http://www.lucidimagination.com >