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 E6E34200BD5 for ; Thu, 8 Dec 2016 16:45:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E581E160B1F; Thu, 8 Dec 2016 15:45: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 3A56F160B0A for ; Thu, 8 Dec 2016 16:45:01 +0100 (CET) Received: (qmail 78644 invoked by uid 500); 8 Dec 2016 15:44:59 -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 77650 invoked by uid 99); 8 Dec 2016 15:44:58 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Dec 2016 15:44:58 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 0702A1A94FF for ; Thu, 8 Dec 2016 15:44:58 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.398 X-Spam-Level: X-Spam-Status: No, score=0.398 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 8N42vo2mFRK6 for ; Thu, 8 Dec 2016 15:44:57 +0000 (UTC) Received: from mail-io0-f173.google.com (mail-io0-f173.google.com [209.85.223.173]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id E13FD5FDAD for ; Thu, 8 Dec 2016 15:44:56 +0000 (UTC) Received: by mail-io0-f173.google.com with SMTP id h30so6772483iod.2 for ; Thu, 08 Dec 2016 07:44:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=9El8eNr14MBK2l4AsssL3D7rHlMHiidY3PIcW6FttGU=; b=kvjXISlvU2uhQHm7UUOBkvkMmR5Qx/HWDfBWMRG1BPn5bXYLObH+txoGGAK+e3qFJu TLCupY2zEwrjtJXGIc4FKFnGbmGt5UNwy5Gbqfa9hHE/EqKddr0fXu4ziteAvHAL8TPt fi/Jl36VtQg3PQBZfKK0vcY/K4r3oehYaQOO4L8Yh1G7pan9JqBEduoxlZlVF4P25peC V2qNW5MCNw8R0Pg+1LKFHvWndVX9nUMbRd8LQbTlltFVqdvD8YNrJsZqNbGxIQIkFXUk 56MLC06ZmSD8QkHeAhClmKuCFTuAhr6OnvGgHB7sxpTpfIcedW6tp+H2H32PrQaKQE4G Hy7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=9El8eNr14MBK2l4AsssL3D7rHlMHiidY3PIcW6FttGU=; b=UIHJGldZJv0+gmxouZ0ivPOSGDZlTr8buSkf2fSaJ7S5O20G3DYnWmLYhSHaZUxLxO txcAE3kcvToHAnSMAYhk2zXSL4yu+LjAEyTcAibdJXwFrONrYNQk1TydoHjnxXaAsYmF 3+7owgXH1VliLhTc/L8XFGSlHMQKRzhuQQZ/TwWbSeulIpNuVfaEYcBStlkh/VpLCW/v DxswGMV+bs0jd1tcu3FBQ8Go/W2Te7N7+zYf1dG8DUKACD81QWlAVoRGxqLcCpDGW4Bw +qJd/j572kPhInAaXI2STQVk+pG/DPbiy7xbpftxd+1O2BXOrDkb9VY12PcLMtr7wlkH h4Tw== X-Gm-Message-State: AKaTC03fe94g06U1ln/7C7EASBZMdvpRaAa4FPCnS95CNs46eYK08sj2kg0GeMSUK/h8wFAd0wS9xF29SzCamw== X-Received: by 10.107.174.88 with SMTP id x85mr60959731ioe.125.1481211888610; Thu, 08 Dec 2016 07:44:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.26.132 with HTTP; Thu, 8 Dec 2016 07:44:08 -0800 (PST) In-Reply-To: <1460000353.71949030.1481210313397.JavaMail.zimbra@comcast.net> References: <1481205993939-4308942.post@n3.nabble.com> <1460000353.71949030.1481210313397.JavaMail.zimbra@comcast.net> From: Erick Erickson Date: Thu, 8 Dec 2016 07:44:08 -0800 Message-ID: Subject: Re: prefix query help To: solr-user Content-Type: text/plain; charset=UTF-8 archived-at: Thu, 08 Dec 2016 15:45:02 -0000 You'd probably be better off indexing it as a "string" type given your expectations. Depending on the analysis chain (do take a look at admin/analysis for the field in question) the tokenization can be tricky to get right. Best, Erick On Thu, Dec 8, 2016 at 7:18 AM, KRIS MUSSHORN wrote: > Im indexing data from Nutch into SOLR 5.4.1. > I've got a date metatag that I have to store as text type because the data stinks. > It's stored in SOLR as field metatag.date. > At the source the dates are formatted (when they are entered correctly ) as YYYY-MM-DD > > q=metatag.date:2016-01* does not produce the correct results and returns undesireable matches....2016-05-01 etc as example. > q={!prefix f=metatag.date}2016-01 gives me exactly what I want for one month/year. > > My question is how do I chain n prefix queries together? > i.e. > I want all docs where metatag.date prefix is 2016-01 or 2016-07 or 2016-10 > > TIA, > Kris >