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 CD325200CB6 for ; Thu, 29 Jun 2017 18:06:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id CB9C7160BED; Thu, 29 Jun 2017 16:06:27 +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 1E6D4160BDF for ; Thu, 29 Jun 2017 18:06:26 +0200 (CEST) Received: (qmail 99440 invoked by uid 500); 29 Jun 2017 16:06:20 -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 99429 invoked by uid 99); 29 Jun 2017 16:06:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jun 2017 16:06:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 18A811810D9 for ; Thu, 29 Jun 2017 16:06:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.286 X-Spam-Level: ** X-Spam-Status: No, score=2.286 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id cknAXdnK25so for ; Thu, 29 Jun 2017 16:06:16 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id C1B1560CEF for ; Thu, 29 Jun 2017 16:06:15 +0000 (UTC) Received: from mben.nabble.com (unknown [162.253.133.72]) by mwork.nabble.com (Postfix) with ESMTP id 3110D4E61F886 for ; Thu, 29 Jun 2017 09:06:15 -0700 (MST) Date: Thu, 29 Jun 2017 09:06:15 -0700 (MST) From: sc To: java-user@lucene.apache.org Message-ID: <1498752375203-4343468.post@n3.nabble.com> Subject: Lucene GeoNear Search and Sort Performance MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Thu, 29 Jun 2017 16:06:28 -0000 Hi, I have similar requirement of searching points within a radius of 50m. Loaded 100M latlon, indexed/searching with LatLonDocValuesField. Currently, I am testing it on my macbook pro. I have tested with all Directory(RAM/FS/MMap) types, but it takes > 3-4 secs to do search/sort to return of 5 points with in radius of 50m. I am looking to reduce search/sort time < 10ms. I have allocated 4g of RAM for the java process which is more than sufficient. Code: Indexing doc.add(new LatLonDocValuesField("loc", latitude, longitude)); Searching: searcher = new IndexSearcher(indexReader); Sort sortField = new Sort(LatLonDocValuesField.newDistanceSort("loc", minLat, minLng)); Query latlonQuery = LatLonDocValuesField.newDistanceQuery("loc", minLat, minLng, 50); TopDocs docs = searcher.search(latlonQuery, 5, sortField); Any suggestions greatly appreciated. Thanks, -- View this message in context: http://lucene.472066.n3.nabble.com/Lucene-GeoNear-Search-and-Sort-Performance-tp4343468.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org