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 16ED2172E4 for ; Thu, 20 Aug 2015 06:06:34 +0000 (UTC) Received: (qmail 20260 invoked by uid 500); 20 Aug 2015 06:06:29 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 20187 invoked by uid 500); 20 Aug 2015 06:06:29 -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 20155 invoked by uid 99); 20 Aug 2015 06:06:27 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Aug 2015 06:06:27 +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 704CDC0856 for ; Thu, 20 Aug 2015 06:06:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.214 X-Spam-Level: **** X-Spam-Status: No, score=4.214 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=griddynamics.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Ga7k06jF8_mr for ; Thu, 20 Aug 2015 06:06:15 +0000 (UTC) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com [209.85.215.52]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id D6233428E7 for ; Thu, 20 Aug 2015 06:06:14 +0000 (UTC) Received: by lahi9 with SMTP id i9so16122010lah.2 for ; Wed, 19 Aug 2015 23:06:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=griddynamics.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=AqzN99lJwnKDfOIxZdTsmH+rqDmuvMyjsuoivDi8PWo=; b=JAY1wVan0A/r0wKg8L+ZVNfwpMiqzVT7jNGEUb9xN95uERvBtwpww2bpdzs/3h7y2e C7I/EXtRXUhSj+CE9tMH9xy9sw2/BlrT5gQDg6nzOnEgdvZAcOqp8QSBu44amKPeU1aw j+mzJG0NpnZW8glr72Hk/4dTaI9r+bDr9T2Lo= 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:content-type; bh=AqzN99lJwnKDfOIxZdTsmH+rqDmuvMyjsuoivDi8PWo=; b=VyRYyc9m1qgZRL90zfcW3TTqnTZXfiCYgs5Y7kmLX0kqkxstfV0J/0Euil9QW/YIlU JKIpHfLL/YUTBPdPG3nDYgihbo/L+qNVKOkRBebiqT98V+SHUga4ePTMACCX6d1a7jpN dMbBm1KtrPDCcnsQ4gizTKlJRwCKQN9rpNzLki4LKbtzB+M1QRhy758U7yJZs9Hjn8ew W3IoavlJA+Y6XUPLlojoKn64bIGRhzX3hO42vbfsDtI5ViB2a9Drud96PM3wIccC37pi Sm/Gt3OB+OWTwBGstqeNq4oDUkMcNQHEt0fKK41t9+Pyh5JTgGSGjpS0jtRruzzbwmAb j4kA== X-Gm-Message-State: ALoCoQkqXBMK+BW1fD8mLvhfWrnDBK2w//HuUzxZBkPrN9ftddpDw59fxp5Ku9l93a/ymUmv3MMs X-Received: by 10.152.5.201 with SMTP id u9mr1354084lau.26.1440050773269; Wed, 19 Aug 2015 23:06:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.77.229 with HTTP; Wed, 19 Aug 2015 23:05:33 -0700 (PDT) In-Reply-To: <1440015213649-4224037.post@n3.nabble.com> References: <1440014022801-4224018.post@n3.nabble.com> <1440015213649-4224037.post@n3.nabble.com> From: Mikhail Khludnev Date: Thu, 20 Aug 2015 09:05:33 +0300 Message-ID: Subject: Re: How to find the ordinal for a numeric doc value To: solr-user Content-Type: multipart/alternative; boundary=089e0141a242ccb0ad051db7f2ce --089e0141a242ccb0ad051db7f2ce Content-Type: text/plain; charset=UTF-8 Hello, Giving the code https://github.com/apache/lucene-solr/blob/trunk/solr/core/src/java/org/apache/solr/schema/TrieField.java#L727 it creates NumericDocValuesField only. try to define field as multivalued, giving the code it creates SortedSetDocValuesField. On Wed, Aug 19, 2015 at 11:13 PM, tedsolr wrote: > One error (others perhaps?) in my statement ... the code > > searcher.getLeafReader().getSortedDocValues(field) > > just returns null for numeric and date fields. That is why they appear to > be > ignored, not that the ordinals are all absent or equivalent. But my > question > is still valid I think! > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/How-to-find-the-ordinal-for-a-numeric-doc-value-tp4224018p4224037.html > Sent from the Solr - User mailing list archive at Nabble.com. > -- Sincerely yours Mikhail Khludnev Principal Engineer, Grid Dynamics --089e0141a242ccb0ad051db7f2ce--