Page 1 of 1

Paginated Search does not cache results

PostPosted:Fri Jan 29, 2016 9:48 am
by flip
When I execute a paginated search, I expect the server to cache my Search, so when I switch to another page, it uses the stored page to show the next results.
We have the problem, that when we start a paginated search, the results don't seem to be saved and whenever the user switches to the next page, the whole search gets executed again and than submits another chunk of results. I noticed it while writing an own scoring algorithm, because it gets executed everytime the user switches the page.

We are using OpenKM 6.3.1 Community Version. We customized the standard search so that before the query gets submitted to Hibernate, we wrap it in an instance of LuceneCustomQuery to use our own scoring algorithm instead of the standard Lucene scoring algorithm.
We didn't modify the SearchDAO class. Instead we modified DBSearchModule. Underneath lies a postgres database.

Is this problem due to false settings, is it because we modified the query or is it something you have already addressed? If you already solved it, could you point me in the right direction please?

Kind regards

Re: Paginated Search does not cache results

PostPosted:Mon Feb 01, 2016 10:40 am
by pavila
Hello,

Would you mind sharing the new scoring algorithm with us?

Regards.