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 B85111793A for ; Sat, 11 Jul 2015 20:17:10 +0000 (UTC) Received: (qmail 84483 invoked by uid 500); 11 Jul 2015 20:17:05 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 84410 invoked by uid 500); 11 Jul 2015 20:17:05 -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 84398 invoked by uid 99); 11 Jul 2015 20:17:05 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Jul 2015 20:17:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 07DC7D3CCE for ; Sat, 11 Jul 2015 20:17:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-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: spamd1-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 (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id b40GuGgryz_C for ; Sat, 11 Jul 2015 20:16:53 +0000 (UTC) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 63ED643DF7 for ; Sat, 11 Jul 2015 20:16:53 +0000 (UTC) Received: by lbnk3 with SMTP id k3so107692881lbn.1 for ; Sat, 11 Jul 2015 13:16:46 -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=tyBjXMm2yo7PvyGVXC/8xA6EnzDWoSBfbp4d6arK3nU=; b=E2/wxEOJC0/3rEil69Cxle3mY5AF9TEcWZR9USms+wRgTNM9cxz+Ds0QRcOZzWwCmy n2t4HyM8TG/Dh0Rpah0rZglO8nTWS7+hHQQF+AoK+pvCXRUTMdJReIDgmcFOFMsbK46M IaLRJNRYAKQrxv3RPqrnuLoUSgXQLVKrl34ew= 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=tyBjXMm2yo7PvyGVXC/8xA6EnzDWoSBfbp4d6arK3nU=; b=T9PxdbuutGFpnAr9H3pZjwOZlj2rGkUZIA5ZCqf7/5beAKVDhQUHnJ4F8Kh6/9u+cC 4oqE60rU2VpBj/smJMaCQzOL/z2udOXPoQQUKvxwmhk9+X9lb49On2L7WDYWDGZ1WB8c DhYk0eUM28sFENkGKf1NuM0yxYr+C9hBsMu4vHZwK/po9T7cQuhy68mZ0+/VGgzl+AjF sBW+pIW4EXPydy6+kb1o8iJZ2hFtn4lw/2eLcfyqqhXfpNdiqPD5vQirmloA2CJAt5o8 YMaBNTF+Hz5Ae34wZM8xwMAaO0IIsxP44iR7Y7WeiR940vHSH4wfIGDmTiXb+6gSVUy+ ZeZw== X-Gm-Message-State: ALoCoQknfRK5y7p1QviWBsvIm85kWIUkLcJWk4904sS53Q6pMgKswOfHulKO7AMKh6xa7PGllkQI X-Received: by 10.152.19.67 with SMTP id c3mr22368953lae.4.1436645805938; Sat, 11 Jul 2015 13:16:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.76.70 with HTTP; Sat, 11 Jul 2015 13:16:06 -0700 (PDT) In-Reply-To: References: <1436642336485-4216858.post@n3.nabble.com> From: Mikhail Khludnev Date: Sat, 11 Jul 2015 23:16:06 +0300 Message-ID: Subject: Re: How to get SortedDocValues in lucene-5.2.1 To: solr-user Content-Type: multipart/alternative; boundary=089e0149420aee721a051a9f2a56 --089e0149420aee721a051a9f2a56 Content-Type: text/plain; charset=UTF-8 that's how dig guys do it https://github.com/apache/lucene-solr/blob/trunk/solr/core/src/java/org/apache/solr/request/DocValuesFacets.java#L77 On Sat, Jul 11, 2015 at 11:12 PM, Mikhail Khludnev < mkhludnev@griddynamics.com> wrote: > you can call getSortedDocValues() right from reader > > On Sat, Jul 11, 2015 at 10:18 PM, Nickolay41189 > wrote: > >> In lucene-4.10.1 for to get *SortedDocValues *I used this code: >> >> SolrIndexSearcher searcher = request.getSearcher(); >> AtomicReader reader = searcher.getAtomicReader(); >> SortedDocValues sourceIndex = FieldCache.DEFAULT.getTermsIndex(reader, >> fieldName); >> >> It worked fine, but now I don't understand what to do with this code. I >> read >> in another forums: >> >> "FieldCache is gone (moved to a dedicated *UninvertingReader *in the misc >> module)" >> >> But what does it mean? Can I use *UninvertingReader *or not? How do I use >> it? >> >> >> >> -- >> View this message in context: >> http://lucene.472066.n3.nabble.com/How-to-get-SortedDocValues-in-lucene-5-2-1-tp4216858.html >> Sent from the Solr - User mailing list archive at Nabble.com. >> > > > > -- > Sincerely yours > Mikhail Khludnev > Principal Engineer, > Grid Dynamics > > > > -- Sincerely yours Mikhail Khludnev Principal Engineer, Grid Dynamics --089e0149420aee721a051a9f2a56--