You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Senthilnathan Vijayaraja <se...@8kmiles.com> on 2013/12/18 15:26:53 UTC
Dynamically deriving the param value in solrconfig requestHandler
hi,
Is there any possibility to derive a value to a param from other params
like below,
<requestHandler name="/main"
class="com.solr.custom.handler.MySearchHandler">
<arr name="components">
<str>query</str>
<str>debug</str>
</arr>
<lst name="defaults">
<str name="size_relaxed">*size:['$minSize' TO '$maxSize'] *</str>
//minSize and maxSize will be supplied as query parameter or else
defaults
to below values((i.e size_relaxed=size:[0 TO 100000000] ))
*<str name="minSize">0</str> <str name="maxSize">100000000</str>*
</lst>
</requestHandler>
Thanks & Regards,
Senthilnathan V