lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <>
Subject Re: Storing query results
Date Fri, 23 Aug 2013 11:13:46 GMT
No, there's nothing like that in Solr. The closest you
could come would be to not do a hard commit (openSearcher=true)
or a soft commit for a very long time. As long as neither
of these things happen, the search results won't
change. But that's a hackish solution.

In fact I question your basic assumption. You say you don't
want the search results to change. But....
1> the user probably wouldn't notice
2> this can mislead in completely different ways. What if
     most of the search results were deleted after the
     first query? What if the _exact_ document she was
     looking for got indexed after the first query?

This is one of those features that at first blush sounds
somewhat reasonable, but I don't think stands up under
inspection. It'd be some amount of work for, IMO, dubious

If you _must_ do something like this, the app layer could
do something like request a &rows=1000&fl=id
and essentially re-implement the queryResultCache at the
app layer. Subsequent pages would cause you to issue
queries like id=(1 or 54 or 90 ....).


On Thu, Aug 22, 2013 at 6:00 PM, Ahmet Arslan <> wrote:

> Hi jfeist,
> Your mail reminds me this blog, not sure about solr though.
> ________________________________
>  From: jfeist <>
> To:
> Sent: Friday, August 23, 2013 12:09 AM
> Subject: Storing query results
> I am in the process of setting up a search application that allows the user
> to view paginated query results.  The documents are highly dynamic but I
> want the search results to be static, i.e. I don't want the user to click
> the next page button, the query reruns, and now he has a different set of
> search results because the data changed while he was looking through it.  I
> want the results stored somewhere else and the successive page queries to
> draw from that.  I know Solr has query result caching, but I want to store
> it entirely.  Does Solr provide any functionality like this?  I imagine it
> doesn't, because then you'd need to specify how long to store it, etc.  I'm
> using Solr 4.4.0.  I found someone asking something similar  here
> <>   but
> that was 6 years ago.
> --
> View this message in context:
> Sent from the Solr - User mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message