Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1599210CF1 for ; Fri, 23 Aug 2013 11:14:18 +0000 (UTC) Received: (qmail 37135 invoked by uid 500); 23 Aug 2013 11:14:14 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 36921 invoked by uid 500); 23 Aug 2013 11:14:13 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 36913 invoked by uid 99); 23 Aug 2013 11:14:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Aug 2013 11:14:13 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of erickerickson@gmail.com designates 209.85.212.50 as permitted sender) Received: from [209.85.212.50] (HELO mail-vb0-f50.google.com) (209.85.212.50) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Aug 2013 11:14:07 +0000 Received: by mail-vb0-f50.google.com with SMTP id x14so321184vbb.37 for ; Fri, 23 Aug 2013 04:13:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=pNVW8+Jhfy7ZjcWcJsDqJMfb/S1lolIHqUAVp9vK7OM=; b=kmfllvjXba5+wHPbs254rHxd4kutugy0CpiL5aSLi4X+TvStZVfK/JRcWO8ZcdA8iu /qHGm2f9azXRHHJQY020xI0GXu923ZXIief39VrZTCLk1g/LLaSWTBgzwa5P5Pja87lQ Z0/W0s1FoGMkAav13reBl8OzP2S/WZpNTsWgJj4AumKTHTBaCaFJ3h0Xt+cG3q5MK1/z 4TMB/k8TDiVSHim/rIdnaBHb6yaXy7QfWBHbeorfTYf1AYfoUrTD0oRh5qFIqf7g885v JoBENPwUwbWXwACtK7dZ/d6XPQgmELGtCBVi0nvkLjaqMSYfIISt2U1a7rwjiBvD6f1h eIJA== MIME-Version: 1.0 X-Received: by 10.221.40.10 with SMTP id to10mr6639371vcb.22.1377256427051; Fri, 23 Aug 2013 04:13:47 -0700 (PDT) Received: by 10.52.101.163 with HTTP; Fri, 23 Aug 2013 04:13:46 -0700 (PDT) In-Reply-To: <1377208827.41659.YahooMailNeo@web125303.mail.ne1.yahoo.com> References: <1377205799942-4086182.post@n3.nabble.com> <1377208827.41659.YahooMailNeo@web125303.mail.ne1.yahoo.com> Date: Fri, 23 Aug 2013 07:13:46 -0400 Message-ID: Subject: Re: Storing query results From: Erick Erickson To: solr-user@lucene.apache.org, Ahmet Arslan Content-Type: multipart/alternative; boundary=001a11337576195e5304e49b80e5 X-Virus-Checked: Checked by ClamAV on apache.org --001a11337576195e5304e49b80e5 Content-Type: text/plain; charset=ISO-8859-1 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 utility. 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 ....). Best Erick 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. > > > http://blog.mikemccandless.com/2011/11/searcherlifetimemanager-prevents-broken.html > > > > ________________________________ > From: jfeist > To: solr-user@lucene.apache.org > 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: > http://lucene.472066.n3.nabble.com/Storing-query-results-tp4086182.html > Sent from the Solr - User mailing list archive at Nabble.com. > --001a11337576195e5304e49b80e5--