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 39ACD200BA8 for ; Mon, 24 Oct 2016 19:35:58 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 369A9160AEB; Mon, 24 Oct 2016 17:35:58 +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 A161D160AD7 for ; Mon, 24 Oct 2016 19:35:57 +0200 (CEST) Received: (qmail 54844 invoked by uid 500); 24 Oct 2016 17:35:56 -0000 Mailing-List: contact user-help@lucenenet.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@lucenenet.apache.org Delivered-To: mailing list user@lucenenet.apache.org Delivered-To: moderator for user@lucenenet.apache.org Received: (qmail 49777 invoked by uid 99); 24 Oct 2016 17:34:53 -0000 X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.701 X-Spam-Level: X-Spam-Status: No, score=-1.701 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, RP_MATCHES_RCVD=-2.999, SPF_PASS=-0.001] autolearn=disabled X-TMN: [8/FHYvJ3LmeEpUacUZktVPdblF4f5yxV] X-Originating-Email: [ml_black@hotmail.com] Message-ID: Content-Type: multipart/alternative; boundary="_bd3a0840-774c-4cd9-878d-52909ac515a0_" From: Monica Black To: "user@lucenenet.apache.org" Subject: Lucene.Net 4.8 Directory question Date: Mon, 24 Oct 2016 14:34:22 -0300 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 24 Oct 2016 17:34:23.0167 (UTC) FILETIME=[DBF934F0:01D22E1C] archived-at: Mon, 24 Oct 2016 17:35:58 -0000 --_bd3a0840-774c-4cd9-878d-52909ac515a0_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Lucene Devs. I am using Lucene again after many years for data caching in an application= where we didn't want a lot of components to install. It's really quite pe= rfect for this. The question I have is how best to approach the use of directories=2C indic= es=2C and searchers. My cache is structured with a Lucene cache per subdirectory (lowest leaves = only) like so:-Address Type 1----AK----AL----AR..... -Address Type 2----AK----AL----AR..... and so on for each US State. The bad thing about this type of cache breakdown is that I need one FSDirec= tory for each of two address types per US State--that's a lot of FSDirector= ies. I notice the FSDirectory is very slow to open. =20 This will be a library called from another application=2C so I have no way = to know how many queries the application would need per cache. What do you= suggest to avoid this slow opening of FSDirectory over and over? Thanks=2CMonica = --_bd3a0840-774c-4cd9-878d-52909ac515a0_--