On Mon, Nov 30, 2015 at 12:46 PM, Johannes Siegert < johannes.sieg...@marktjagd.de> wrote:
> Hi, > > some of my solr indices have a low cache-hit-ratio. > > 1 Does sorting the parts of a single filter-query have impact on > filter-cache- and query-result-cache-hit-ratio? > 1.1 Example: fq=field1:(2 or 3 or 1) to fq=field1:(1 or 2 or 3) -> if > 1,2,3 are randomly sorted > Yes it does, probably. However, there is an ongoing discussion in some jira, iirc. > 2 Does sorting the parts of the query have impact on > query-result-cache-hit-ratio? > 2.1 Example: "q=abc&fq=field1:abc&sort=field1 > desc&fq=field2:xyz&sort=field2 asc" to > "q=abc&fq=field1:abc&fq=field2:xyz&sort=field1 desc&sort=field2 asc" -> if > the query parts are randomly sorted > Nope. fwiw, I wonder if several sort params make sense. This is exactly a case when it's easier to experiment checking cache stats in SolrAdmin, than trust any advice. btw, can't http://wiki.apache.org/solr/SolrCaching#showItems help to answer your questions? > > Thanks! > > Johannes > > -- Sincerely yours Mikhail Khludnev Principal Engineer, Grid Dynamics <http://www.griddynamics.com> <mkhlud...@griddynamics.com>