Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 09541200B40 for ; Fri, 1 Jul 2016 12:53:01 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 07F04160A61; Fri, 1 Jul 2016 10:53:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4F5C0160A5D for ; Fri, 1 Jul 2016 12:53:00 +0200 (CEST) Received: (qmail 57007 invoked by uid 500); 1 Jul 2016 10:52:58 -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 56993 invoked by uid 99); 1 Jul 2016 10:52:58 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jul 2016 10:52:58 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 058CCC02E8 for ; Fri, 1 Jul 2016 10:52:58 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.298 X-Spam-Level: * X-Spam-Status: No, score=1.298 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id obMKGzNhIP83 for ; Fri, 1 Jul 2016 10:52:56 +0000 (UTC) Received: from mail-io0-f178.google.com (mail-io0-f178.google.com [209.85.223.178]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 037785FB20 for ; Fri, 1 Jul 2016 10:52:55 +0000 (UTC) Received: by mail-io0-f178.google.com with SMTP id f30so96971059ioj.2 for ; Fri, 01 Jul 2016 03:52:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=RVYrDeX+I8JzS7Io2gv28lFU/KUZ9j+pwFgvN85Y3ng=; b=NNnriGNV2qAKTkE1zNzlCPCy3tOOjBLIZgpBzf+VTnm3ZNaXU2svdeBbhcLMOEn1a2 jXP+qyYWgWsKMsQOdSjvIPlU2TDsGc8ahx8DFTNGWDoMA4hTuEdbZkvGNicR9/5dB8zU HmtEsHZTe2GiEOPFenbeatvuQiYcD84Yh24kfrDbQ4mZo1uvrXYqJoK96hosP0oGVTw+ NxU1ZInT7Fh95En4D9913ANochAR9eYbeLW0RjykLeX1P57Fo00MofkYV4lV3vDh0fup xEXOEgKfvepivtM/Hy+3AF07/jNnaUr4J7Uah+t3RyzKPLRyg+CN8mou6LxMIlRZ6XXa njog== X-Gm-Message-State: ALyK8tI9maWLm5HODUph+Xo4ixEajPWg8Uch2fEiDSVNLGCL8hNjmLUo0YtDLzDEypo8VSL8a5oSaYh1RFTGLjCynOrsEYnRkmzkdmCd6nxDlxy8OKmU5VnKHhuz1/R/RkJsNNQ7Cvo09i8QF81HjKn4EA== X-Received: by 10.107.129.18 with SMTP id c18mr19512125iod.102.1467370368880; Fri, 01 Jul 2016 03:52:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.135.79 with HTTP; Fri, 1 Jul 2016 03:52:48 -0700 (PDT) From: Callum Lamb Date: Fri, 1 Jul 2016 11:52:48 +0100 Message-ID: Subject: Date range warming. To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001a113f970a97a313053690c910 archived-at: Fri, 01 Jul 2016 10:53:01 -0000 --001a113f970a97a313053690c910 Content-Type: text/plain; charset=UTF-8 We want to warm some FQ's. The main ones we want to do being date presets like "last 6 months", "last year" .etc The queries for the last 6 months get generated to look like this from site (it's really 6 months -1 day): *date_published:([2016-01-02T00:00:00.000Z TO 2016-07-01T23:59:59.999Z])* But since I have to represent this is in the firstSearcher section of solrconfig.xml I need to use the date math features (Is there another way? There doesn't seem to be a JVM system properties with the date in it, and I don't want to have to restart solr everyday to update a solr env variable). So I have this: *date_published:([NOW/DAY-6MONTH+1DAY TO NOW/DAY+1DAY-1SECOND])* Which should resolve to the same thing. Is there someway I can check this for sure? I get the same results when I run them. I have a couple questions though: 1. Is Solr smart enough to see that it if the current explicit queries that come through are the same as my date math queries and re-use the fq in this case? Is there a way to confirm this? I can go and change them to be the same as well, not much of an issue, more curious than anything. 2. Can Solr re-use fq's with NOW in them at all? Since NOW is changing all the time I'm worried there some kind of checker than just sets cache=false on all queries containing NOW or worse expands them to the current time and caches that, and none of the fq's will ever match it (assuming solr just does a strcmp for fq's). Cheers, Callum. -- Mintel Group Ltd | 11 Pilgrim Street | London | EC4V 6RN Registered in England: Number 1475918. | VAT Number: GB 232 9342 72 Contact details for our other offices can be found at http://www.mintel.com/office-locations. This email and any attachments may include content that is confidential, privileged or otherwise protected under applicable law. Unauthorised disclosure, copying, distribution or use of the contents is prohibited and may be unlawful. If you have received this email in error, including without appropriate authorisation, then please reply to the sender about the error and delete this email and any attachments. --001a113f970a97a313053690c910--