[
https://issues.apache.org/jira/browse/SOLR-2789?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Pugh updated SOLR-2789:
----------------------------
Attachment: cache_details.patch
First cut of a patch.
> Add showItems to LRUCache, display extra details about cached data for both
> LRUCache and FastLRUCache
> -----------------------------------------------------------------------------------------------------
>
> Key: SOLR-2789
> URL: https://issues.apache.org/jira/browse/SOLR-2789
> Project: Solr
> Issue Type: Improvement
> Components: search
> Affects Versions: 3.4
> Reporter: Eric Pugh
> Priority: Minor
> Attachments: cache_details.patch
>
>
> I noticed that the showItems parameter for cache configuration applies to
> FastLRUCache but not LRUCache. So I added it. I also noticed that the key
> data about an item that is QueryResult cache hit wasn't very useful, but was
> for document and filter cache, so added specific support for QueryResultKey.
> This patch should probably be merged with the work in SOLR-1893, which is a
> proposed refactor. I'm happy to merge these two into a single patch if
> someone things that is a good idea.
> The output for a queryresult cache hit now looks like:
> <str name="cumulative_hitratio">0.66</str>
> <long name="cumulative_inserts">43</long>
> <long name="cumulative_evictions">0</long>
> <str name="item_QueryResultKey:-1058088364(query=text:efficient,
> filters=[manu:"apple computer inc"],
> sort=null)">org.apache.solr.search.DocSlice@1e66a917</str>
> <str name="item_QueryResultKey:-425423228(query=text:based,
> filters=[inStock:T],
> sort=null)">org.apache.solr.search.DocSlice@7bfcb845</str>
> I've also updated the example solrconfig.xml in order to better show off the
> showItems parameter.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]