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 8640B176C4 for ; Thu, 2 Jul 2015 22:09:47 +0000 (UTC) Received: (qmail 19866 invoked by uid 500); 2 Jul 2015 22:09:43 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 19792 invoked by uid 500); 2 Jul 2015 22:09:43 -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 19773 invoked by uid 99); 2 Jul 2015 22:09:41 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jul 2015 22:09:41 +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 96606D1BF7 for ; Thu, 2 Jul 2015 22:09:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.1 X-Spam-Level: X-Spam-Status: No, score=-0.1 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (768-bit key) header.d=lovehorsepower.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id k2rmYHsYds0Y for ; Thu, 2 Jul 2015 22:09:31 +0000 (UTC) Received: from gproxy7-pub.mail.unifiedlayer.com (gproxy7-pub.mail.unifiedlayer.com [70.40.196.235]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with SMTP id 7B0AF2092B for ; Thu, 2 Jul 2015 22:09:31 +0000 (UTC) Received: (qmail 15289 invoked by uid 0); 2 Jul 2015 22:09:25 -0000 Received: from unknown (HELO cmgw4) (10.0.90.85) by gproxy7.mail.unifiedlayer.com with SMTP; 2 Jul 2015 22:09:25 -0000 Received: from host303.hostmonster.com ([74.220.215.103]) by cmgw4 with id ng271q00Z2ERkQi01g2Adz; Thu, 02 Jul 2015 22:02:13 -0600 X-Authority-Analysis: v=2.1 cv=HpvlRSjS c=1 sm=1 tr=0 a=Vu4xoVER/woyjdr9n1clQQ==:117 a=Vu4xoVER/woyjdr9n1clQQ==:17 a=DsvgjBjRAAAA:8 a=f5113yIGAAAA:8 a=HimLozBrAAAA:8 a=y1yq9zG9u7AA:10 a=IkcTkHD0fZMA:10 a=xpmILuc-OncA:10 a=AgajeOY9C-kA:10 a=zOBTXjUuO1YA:10 a=pGLkceISAAAA:8 a=zBv7ELRyixqgqZc8GEkA:9 a=QEXdDO2ut3YA:10 a=hhFMxcOg_tgA:10 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lovehorsepower.com; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject; bh=COFyIKN19JLlDMyFVZHW3auKU1JOn4/t5WZEzEPSqrc=; b=rE1NfI2sJ4R/phK/0uZ20/FG+vL/hNH2wvyoxZ07z10NLg92GJvwulL4CVFJQGqimAaQD2r9EhKWlB5GE9liiJwUNJmHCcVTviGV1MZQumI9WElaOFfwvJDmpqo+/CTh; Received: from [108.28.224.202] (port=63575 helo=[192.168.100.3]) by host303.hostmonster.com with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.84) (envelope-from ) id 1ZAmfW-0006jA-Im for solr-user@lucene.apache.org; Thu, 02 Jul 2015 16:09:18 -0600 Subject: Re: heatmaps To: solr-user@lucene.apache.org References: From: Joseph Obernberger Message-ID: <5595B68C.4020201@lovehorsepower.com> Date: Thu, 2 Jul 2015 18:09:16 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Identified-User: {5930:host303.hostmonster.com:lovehors:lovehorsepower.com} {sentby:smtp auth 108.28.224.202 authed with joeo@lovehorsepower.com} Hi - perhaps you do not have enough geospatial data in your index to generate a larger image? Try setting the facet.heatpmap.gridLevel to something higher like 4. I've run queries like: q=insert whatever here&wt=json&indent=true&facet=true&facet.heatmap=geo&facet.heatmap.gridLevel=4&facet.heatmap.format=ints2D&rows=0&facet.heatmap.maxCells=35554432 I'm not familiar with the notation you have facet.heatmap=store_geohash. What is that? I'm very interested in working with heatmaps and have tried integrating the results from Solr with GeoTools. I have access to a very sizable index with geospatial content in it, and I've been able to generate images like this: http://lovehorsepower.com/images/Solr/AllDataSinceJan01_2015_Map.jpg The above is a 1024x1024 raster. Doing a geospatial filter query around the UK results in an image like this: http://lovehorsepower.com/images/Solr/TwitterDataOneDayUKGeoSearchMap.jpg I would love to be able to apply some heatmap visualization to this. Anyone have any ideas on what tools to use? Thank you. -Joe On 6/13/2015 4:29 PM, William Bell wrote: > OK. I was able to get a PNG - but it looks tiny and a blob. Not sure how to > use it. > > echo iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAA0UlEQVR42mNg > YGD4P8B41AEwBuNAOoD7PwMbP5BmGygHyP9nENf5z8C45D8Dk+ZAp4FNA+ > wA5pn/GZfz/GeQzv3PkL3hP4Pw+f8MLGuBctl0cgCv1n+Gton/GSUs/jPGL/jP+ > uvCf467IAdMoFcUyPxnaS78zzCN6T+TKMt/5g+T/jNJraZzOXBc6T/D9bv/ > mfp//2f8GDqABZFCzX/GQh86OED1338Grm34FVrMoEcITKdDt > msZrYxGHTDqAFIdwDgaBaMOGHXAqANGHTC8HQAAQf8YdbR5KkIAAAAASUVORK5CYII= | > base64 --decode > test.png > > Very strange. > > Maybe I need to zoom in? > > > > On Sat, Jun 13, 2015 at 2:18 PM, William Bell wrote: > >> How do you use the heatmaps feature to show the PNG or use the int2D to >> show the heatmap easily just for testing? >> >> >> http://localhost:8983/solr/select?q=*%3A*&wt=json&rows=0&indent=true&facet=true&facet.heatmap=store_geohash&facet.heatmap.format=png >> >> { >> >> - responseHeader: >> { >> - status: 0, >> - QTime: 163, >> - params: >> { >> - facet.heatmap.format: "png", >> - q: "*:*", >> - facet.heatmap: "store_geohash", >> - indent: "true", >> - rows: "0", >> - wt: "json", >> - facet: "true" >> } >> }, >> - response: >> { >> - numFound: 2664396, >> - start: 0, >> - docs: [ ] >> }, >> - facet_counts: >> { >> - facet_queries: { }, >> - facet_fields: { }, >> - facet_dates: { }, >> - facet_ranges: { }, >> - facet_intervals: { }, >> - facet_heatmaps: >> { >> - store_geohash: >> [ >> - "gridLevel", >> - 2, >> - "columns", >> - 32, >> - "rows", >> - 32, >> - "minX", >> - -180, >> - "maxX", >> - 180, >> - "minY", >> - -90, >> - "maxY", >> - 90, >> - "counts_png", >> - >> "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAA0UlEQVR42mNgYGD4P8B41AEwBuNAOoD7PwMbP5BmGygHyP9nENf5z8C45D8Dk+ZAp4FNA+wA5pn/GZfz/GeQzv3PkL3hP4Pw+f8MLGuBctl0cgCv1n+Gton/GSUs/jPGL/jP+uvCf467IAdMoFcUyPxnaS78zzCN6T+TKMt/5g+T/jNJraZzOXBc6T/D9bv/mfp//2f8GDqABZFCzX/GQh86OED1338Grm34FVrMoEcITKdDtmsZrYxGHTDqAFIdwDgaBaMOGHXAqANGHTC8HQAAQf8YdbR5KkIAAAAASUVORK5CYII=" >> ] >> } >> } >> >> } >> >> -- >> Bill Bell >> billnbell@gmail.com >> cell 720-256-8076 >> > >