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 CDCD1107BE for ; Wed, 8 May 2013 19:30:48 +0000 (UTC) Received: (qmail 11898 invoked by uid 500); 8 May 2013 19:30:45 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 11839 invoked by uid 500); 8 May 2013 19:30:45 -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 11831 invoked by uid 99); 8 May 2013 19:30:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 May 2013 19:30:45 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [209.85.220.48] (HELO mail-pa0-f48.google.com) (209.85.220.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 May 2013 19:30:37 +0000 Received: by mail-pa0-f48.google.com with SMTP id kp6so1554795pab.7 for ; Wed, 08 May 2013 12:29:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:date:from:to:subject:in-reply-to:message-id:references :user-agent:mime-version:content-type:x-gm-message-state; bh=N+WzbRU/uXzMeeqvACnz2VELxqnSy6EJxGNI4tP+a7o=; b=hC3ajJLHa3nhXgx8U6l+EIrKZ9d/W9ZrzTfbZWDlOxcxWw1EQVGALT6k4eXeSKt6Ls LIjat7DJFlPd4RuAk/hKLb+znL69C/gmSEgHdAJrJXRlrg4xKqyK6zpxYi1S5sR2XYeW fL0ZYMG/06xhqeI8hXrDSjooodpKSvYYbIYC3SZKql+NComkzfY1T1c1BQpc2cUCGXz4 OczGVOByoYWypvUKJC9Jcc1tq7kBWqqbGkTWPZwB+o4v3Muibq+IOGHURtHMbLnWeOpP 7Y8kf1cuEqaoB9yG0+wMtV3UG1STjGGVATbtWT0xfO8z7hhPICJH4ZEkjCqh9dUh7W8W WxQA== X-Received: by 10.66.7.228 with SMTP id m4mr9601558paa.173.1368041396262; Wed, 08 May 2013 12:29:56 -0700 (PDT) Received: from frisbee.local (68-233-218-146.static-ip.telepacific.net. [68.233.218.146]) by mx.google.com with ESMTPSA id uv1sm2403296pbc.16.2013.05.08.12.29.54 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 08 May 2013 12:29:55 -0700 (PDT) Date: Wed, 8 May 2013 12:29:52 -0700 (PDT) From: Chris Hostetter To: "solr-user@lucene.apache.org" Subject: Re: Numeric fields and payload In-Reply-To: <91D49D99AB578240A8EDFCD15C293813B87E8F1C89@ex07> Message-ID: References: <91D49D99AB578240A8EDFCD15C293813B87E8F1C89@ex07> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Gm-Message-State: ALoCoQmV/9fjsAKbyNfJW1OI0PKBsNEP7I/PKRoB5OOegYSKPA+lOyoKOUuBp2nGwpa1kmMfBZ28 X-Virus-Checked: Checked by ClamAV on apache.org : is it possible to store (text) payload to numeric fields (class : solr.TrieDoubleField)? My goal is to store measure units to numeric : features - e.g. '1.5 cm' - and to use faceted search with these fields. : But the field type doesn't allow analyzers to add the payload data. I : want to avoid database access to load the units. I'm using Solr 4.2 . I'm not sure if it's possible to add payloads to Trie fields, but even if there is i don't think you really want that for your usecase -- i think it would make a lot more sense to normalize your units so you do consistent sorting, range queries, and faceting on the values regardless of wether it's 100cm or 1000mm or 1m. -Hoss