Hi,

my query format is,

q=(price_min:[100000 TO 800000] OR price_max:[100000 TO 800000])AND
(size_min:[1000 TO 5000] OR size_max:[1000 TO 5000])....

  if this query returns 0 results then
    -->fire a fallback query after changing the value of size_min and
size_max
        q=(price_min:[100000 TO 800000] OR price_max:[100000 TO 800000])AND
(size_min:[100 TO 500] OR size_max:[100 TO 500])
  if, again it gives 0 results then
    -->fire a fallback query after changing the value of price_min and
price_max
        q=(price_min:[1000 TO 8000] OR price_max:[1000 TO 8000])AND
(size_min:[100 TO 500] OR size_max:[100 TO 500])

        I wrote a custom request handler to achieve this and now it is
working fine but in my code,

        I got the value of 'q' param like,

        String[] paramVals = reqParams.getParams("q");//(price_min:[100000
TO 800000] OR price_max:[100000 TO 800000])AND (size_min:[1000 TO 5000] OR
size_max:[1000 TO 5000])

        and  manually replaced the price_min,price_max,size_min,size_max
values using string functions,there by I formed two LocalRequests for
handling  this.


Is there any better way to handle this,I want this to be more
configurable..???





Thanks & Regards,
Senthilnathan V

Reply via email to