Re: Resizable LRUQueryCache

2020-03-10 Thread Michael McCandless
Maybe start with your own cache implementation that implements a resize method? The cache is pluggable through IndexSearcher. Fully discarding the cache and swapping in a newly sized (empty) one could also be jarring, so I can see the motivation for this method. Especially for usages that are ho

Re: Autocompletion based on one field in index

2020-03-10 Thread Kumaran Ramasubramanian
Hi Mikhail Thanks for the input. But i would like to suggest title of the available documents (for the query typed in search box ) from an index & when user clicked on the suggestion, i would like to take to exact document. Thanks in advance. my requirement is like this ( like google did in its h

Re: Resizable LRUQueryCache

2020-03-10 Thread Aadithya C
Hi Atri, Thanks for pointing out potential performance issues for high QPS workloads when downsizing. Depending on the size of the cache, it might make sense to create a new one with the necessary entries. On the other hand, if you consider cases where the process is under heavy memory pressure an