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 02B92200C5C for ; Thu, 20 Apr 2017 14:28:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 012EE160B9F; Thu, 20 Apr 2017 12:28:00 +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 49245160B91 for ; Thu, 20 Apr 2017 14:27:59 +0200 (CEST) Received: (qmail 83472 invoked by uid 500); 20 Apr 2017 12:27:58 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 83458 invoked by uid 99); 20 Apr 2017 12:27:57 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Apr 2017 12:27:57 +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 67756C2112 for ; Thu, 20 Apr 2017 12:27:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-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 (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id adrAYfb3b298 for ; Thu, 20 Apr 2017 12:27:56 +0000 (UTC) Received: from mail-yw0-f181.google.com (mail-yw0-f181.google.com [209.85.161.181]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 316255F3BC for ; Thu, 20 Apr 2017 12:27:56 +0000 (UTC) Received: by mail-yw0-f181.google.com with SMTP id j9so37485040ywj.3 for ; Thu, 20 Apr 2017 05:27:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=XDlDPg1mCzydsHO0W0xme7hR3m+YxqDH4QMsBYORlrw=; b=W11O+v9xb66LUmHIKwl8vyikxaVCj0xPpcLgz2esSdB1bLgz87/xu/TE6Jx/K3nBiY 63YB6U8upF/RJsdd3rggwYBPd9jKeyp5SC2zjECX8d2RXjVYsJLFiP2lF0VDBFXUDC8F jvM0QaniWAr8UYshnR/qmCpIUlJ2+47Uz22Q/cLrZubrt6+88D1+ZoyS0zSLc8hUCIAB 6foYwmxJKKcBVYQk8SCJ0oKX//wXQErOth+nh69YpNYL5fluwXYdZbG43E2iTW7SSVW+ 6bNJG9x00LhIYYL6qGNHD0ErBJ7ttyJfXTJ0MX/eBGlz3iQEIiOuZejvdlQVWhOmDKni xEVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=XDlDPg1mCzydsHO0W0xme7hR3m+YxqDH4QMsBYORlrw=; b=jN54JevOZt+a8eM1PUBvUnCdYgLH9cEZagtr9tkVI4SpkGwf4jSGj2CnY57LOXGkoV G/B+WcpdV2FmLe+3peY1cygb6dPuDsk01Rx2OJu+BxFKLazZ6tTlOwCT8XDWHvza2eAt XBlG9kbWKV4hOYbGYfm+Fh/EFPG3kC8AJmcCViOprR0EWd8vEIDKBIbyaYfOf1id1EHF GO33Ow1uuFbrEiTTlfPtvQLKi2yorE5eRVuyQYMxLJWIzl5CsI18uwpG66CX8nEONe2s 38c33QR7asr+kPy4igukb1zqO5Ga/IVg7sn+kDZjvD5Vvx9lG+9cy5NPPaaBDJoWI+Ji Qafw== X-Gm-Message-State: AN3rC/5Qxkd9WzQaeX1EasfM5kjVumK0Pn7Uu9tZo18TqM2y6H/cS1w0 FLRzpsRJC1Wcobf/rhmSf5tLlxFTkg== X-Received: by 10.13.252.7 with SMTP id m7mr6093455ywf.20.1492691275087; Thu, 20 Apr 2017 05:27:55 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Adrien Grand Date: Thu, 20 Apr 2017 12:27:44 +0000 Message-ID: Subject: Re: How to get document effectively. or FieldCache example To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=94eb2c06c1843603f0054d9845f1 archived-at: Thu, 20 Apr 2017 12:28:00 -0000 --94eb2c06c1843603f0054d9845f1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable IndexSearcher.doc is the right way to retrieve documents. If this is slowing things down for you, I'm wondering that you might be fetching too many results? Le jeu. 20 avr. 2017 =C3=A0 14:16, neeraj shah a = =C3=A9crit : > Hello Everyone, > > I am using Lucene 3.6. I have to index around 60k docuemnts. After > performing the search when i try to reterive documents from seacher using > searcher.doc(docid) it slows down the search . > Please is there any other way to get the document. > > Also if anyone can give me an end-to-end example for working FieldCache. > While implementing the cache i have : > > int[] fieldIds =3D FieldCache.DEFAULT.getInts(indexMultiReader, "id"); > > now i dont know how to further use the fieldIds for improving search. > Please give me an end-to-end example. > > Thanks > Neeraj > --94eb2c06c1843603f0054d9845f1--