Please provide the *Solr* queries that are being invoked by your
middle layer along with the results you expect and the results you
actually got from Solr with cache-enabled.

On Mon, Feb 24, 2014 at 6:23 PM, Senthilnathan Vijayaraja
<senthilnat...@8kmiles.com> wrote:
> Below is the url which will hit the middle layer then middle layer will
> form the solr query and fire it.
>
> *listing?offset=0&sortparam=0&limit=20&q=Chennai~Tambaram~1~2,3~450000~25000000~800~2000~~24*
>
>
> Chennai-->city
> Tambaram-->locality
> 1-->blah
> 2,3-->blah
> 450000~25000000-->price_min and max
> 800~2000-->area min and max
> *24--lux_ amenities*
>
> here other than lux_amenities I am using fq for all other things,so the
> problem here is sorting.
>
> I am sorting the results using bscore and relscore likebelow,
>
> <str name="sort">*$bscore desc,$relscore desc*</str>
>
> first time it works fine.
>
> above bscore and relscore will change based on lux_amenities but
> lux_amenities is neither part of fq  nor q.So if second time we are
> changing the lux_amenities alone and firing the query means it is giving
> the result in same order as first query even the bscore and relscore are
> different.
>
> So I disabled the queryResultCache,
>
> <!--        <queryResultCache class="solr.LRUCache" size="512"
>             initialSize="512" autowarmCount="0" />             -->
>
> Now it is working fine. But I need a better solution than disabling this
> for all queries.For eg, I want to disable this for few queries alone not
> for all.
>
>
> Could someone help me please..
>
>
> Thanks & Regards,
> Senthilnathan V



-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to