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 C63332009A0 for ; Sat, 21 May 2016 13:02:15 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C4E8F160A02; Sat, 21 May 2016 11:02:15 +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 22036160A01 for ; Sat, 21 May 2016 13:02:14 +0200 (CEST) Received: (qmail 96192 invoked by uid 500); 21 May 2016 11:02:14 -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 96178 invoked by uid 99); 21 May 2016 11:02:13 -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; Sat, 21 May 2016 11:02:13 +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 342AEC2144 for ; Sat, 21 May 2016 11:02:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.28 X-Spam-Level: * X-Spam-Status: No, score=1.28 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=silenteight-com.20150623.gappssmtp.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Pa8sWA4eXYmG for ; Sat, 21 May 2016 11:02:11 +0000 (UTC) Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id BC4935F253 for ; Sat, 21 May 2016 11:02:10 +0000 (UTC) Received: by mail-wm0-f42.google.com with SMTP id v200so14757166wmv.0 for ; Sat, 21 May 2016 04:02:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silenteight-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=Lo1G8sPwsdBberPg3kRNZ+QEwYhCA6nJ9Ilk8KMkP/Y=; b=ABkhU65kTbEtTznuE3JT++Tj7UjGBz7PQ8cJ/XOIjbvwAEXvrVXr5W4txh/I/L9ZFd R/95tKrNNMCWIQg3Lj2h4fwFGBDWIcWLkniwnwINVqhYbJ8eiHhH885UAa8Snuj/QijU 78h4xAOY7z6r9Mznu4cXNZvr0HHNUjWSNDTIH5jehorBfDPK2fGHtr8Q0WjeFNjg8QPP 7l22JHh/IXe23rlkf0HERIIWJN+mtZdaYNxeqv5ejbCb2s0FYeF0zNfGEMzYkNG+2vKR DyDZL3cuCzIvpF3/iwA1vBubku9Ny+IiBUPPcYU3LM2uJZgA+D9PTixQQ1ZneswSOu0g xc6A== 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:date :message-id:subject:from:to; bh=Lo1G8sPwsdBberPg3kRNZ+QEwYhCA6nJ9Ilk8KMkP/Y=; b=XGfhsQKgTr34YhtrgMit1PT/B7pKWm8jWyLA3WgYdMKVkjfIsqzeG4z9+/2SJ3p5N1 eYZfGHAxN4IbGgsB5ARLwWNGzUmGr5Rqa0L6RYh+hk+oqfi4yU6XtdWrM2CkhAG3Pbr/ Zt1V7BXNdce4iJuu2qoOKpCvZY86dWlycpqvOT5SruERNiTxe8Xk9DksqnA+1UmtmxNj dXt/Gf976vETua7fzMRWqRaFccMZ1VBvNfpmmnEkYr0aFLPESJ4VvoLQPTT7nb+BGm20 RQhB/5k11FWj0jCtdHLk0/BWtDa58D26aExaEvblPqWE0N0nxXIBrR5u50Xacxha+DPJ fwSA== X-Gm-Message-State: AOPr4FUVqfmj4kDwoj0r6ChsBCWfns3bHWK2qIU2958jOYtJ386N1rBt7H3A7YCfFS6IW/9UMYUKDJS/zdnNQA== MIME-Version: 1.0 X-Received: by 10.28.22.65 with SMTP id 62mr8322401wmw.32.1463828523573; Sat, 21 May 2016 04:02:03 -0700 (PDT) Received: by 10.28.236.208 with HTTP; Sat, 21 May 2016 04:02:03 -0700 (PDT) Received: by 10.28.236.208 with HTTP; Sat, 21 May 2016 04:02:03 -0700 (PDT) In-Reply-To: References: <001301d1b349$cfe0b650$6fa222f0$@thetaphi.de> Date: Sat, 21 May 2016 13:02:03 +0200 Message-ID: Subject: Re: Cache Lucene based index. From: Michael Wilkowski To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001a114673d028f84005335823d0 archived-at: Sat, 21 May 2016 11:02:16 -0000 --001a114673d028f84005335823d0 Content-Type: text/plain; charset=UTF-8 I recommend reading http://blog.thetaphi.de/2012/07/use-lucenes-mmapdirectory-on-64bit.html?m=1 Just use mmapdirectory and let operating system do the rest. MW Sent from Mi phone On 21 May 2016 12:42, "Prateek Singhal" wrote: > You can consider that I want to store the lucene index in some sort of > temporary memory or a HashMap so that I do not need to index the documents > every time as it is a costly operation. I can directly return the lucene > index from that HashMap and use it to answer my queries. > > Just want to know if I can access the lucene index object which lucene has > created so that I can cache it. > > > > On Sat, May 21, 2016 at 3:46 PM, Uwe Schindler wrote: > > > Hi, > > > > What do you mean with "cache"? > > > > Uwe > > > > ----- > > Uwe Schindler > > H.-H.-Meier-Allee 63, D-28213 Bremen > > http://www.thetaphi.de > > eMail: uwe@thetaphi.de > > > -----Original Message----- > > > From: Prateek Singhal [mailto:prateek.brly@gmail.com] > > > Sent: Saturday, May 21, 2016 11:27 AM > > > To: java-user@lucene.apache.org > > > Subject: Cache Lucene based index. > > > > > > Hi Lucene lovers, > > > > > > I have a use-case where I want to *create a lucene based index* of > > multiple > > > documents and then *want to cache that index*. > > > > > > Can anyone suggest if this is possible ? > > > And which *type of cache* will be most efficient for this use case. > > > > > > Also if you can provide me with any *example *of the same then it will > be > > > really very helpful. > > > > > > Thanks. > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > > For additional commands, e-mail: java-user-help@lucene.apache.org > > > > > > > -- > Regards, > Prateek Singhal > Software Development Engineer @ Amazon.com > > "Believe in yourself and you can do unbelievable things." > --001a114673d028f84005335823d0--