{"id":1596,"date":"2009-12-31T12:12:46","date_gmt":"2009-12-31T11:12:46","guid":{"rendered":"http:\/\/blog.jteam.nl\/?p=1596"},"modified":"2009-12-31T12:12:46","modified_gmt":"2009-12-31T11:12:46","slug":"spatial-lucene-2-0","status":"publish","type":"post","link":"https:\/\/trifork.nl\/blog\/spatial-lucene-2-0\/","title":{"rendered":"Spatial Lucene 2.0"},"content":{"rendered":"<p>In a number of blog entries we have spoken about the spatial search functionality that we have been developing here at Jteam.  In the last two weeks, I have had a chance to contribute much of this work back to the Apache Lucene project with the goal of furthering the development of Lucene&#8217;s open source spatial search support.  If you want to dive immediately into the code, then jump to <a href=\"https:\/\/issues.apache.org\/jira\/browse\/LUCENE-2139\">LUCENE-2139<\/a>, if you want more details, then read on.<\/p>\n<p><!--more--><\/p>\n<h3>LUCENE-2139<\/h3>\n<p>The work we have contributed in <a href=\"https:\/\/issues.apache.org\/jira\/browse\/LUCENE-2139\">LUCENE-2139<\/a> is merely building upon the work already done in Lucene&#8217;s spatial contrib.  We have not replaced any of the existing algorithms, but rather we have focused on improving their architecture, performance and reliability.<\/p>\n<p>Some of the improvements you can find in LUCENE-2139 are:<\/p>\n<ul>\n<li>Multi-threaded distance filtering, considerably improving the overall performance of the filtering process<\/li>\n<li>Support for multiple data formats whether it be latitude\/longitudes, geohashes, or a user defined data format<\/li>\n<li>Support for multiple distance calculators, giving the user the ability to decide between accuracy and efficiency<\/li>\n<li>Increased documentation, test coverage and a code cleanup, improving the reliability, maintainability and readability of the contrib<\/li>\n<\/ul>\n<p>Note, to allow greater review of these changes, I have broken our work up into a number of smaller issues, all of which you can find connected to LUCENE-2139.<\/p>\n<h3>The Future<\/h3>\n<p>JTeam is committed to helping to develop Lucene&#8217;s enterprise ready open source spatial search support.  The improvements we have contributed are just the first step on our roadmap and are focused on building a foundation that we can then work from.  In the future we intend to help develop the following features:<\/p>\n<ul>\n<li>Simple bounding-box support for user&#8217;s who do not need the accuracy of cartesian tier filtering<\/li>\n<li>Support for NumericRangeQuerys, an alternative way to efficiently find documents within a certain area<\/li>\n<li>More efficient distance calculators, further reducing the overall search time<\/li>\n<li>Polygon support<\/li>\n<li>3D search<\/li>\n<\/ul>\n<p>Of course, if you have any ideas about what other improvements can be made to the contrib, feel free to contact me.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In a number of blog entries we have spoken about the spatial search functionality that we have been developing here at Jteam. In the last two weeks, I have had a chance to contribute much of this work back to the Apache Lucene project with the goal of furthering the development of Lucene&#8217;s open source [&hellip;]<\/p>\n","protected":false},"author":24,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[15],"tags":[35,9,41],"class_list":["post-1596","post","type-post","status-publish","format-standard","hentry","category-enterprise-search","tag-lucene","tag-open-source","tag-spatial-search"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Spatial Lucene 2.0 - Trifork Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/trifork.nl\/blog\/spatial-lucene-2-0\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Spatial Lucene 2.0 - Trifork Blog\" \/>\n<meta property=\"og:description\" content=\"In a number of blog entries we have spoken about the spatial search functionality that we have been developing here at Jteam. In the last two weeks, I have had a chance to contribute much of this work back to the Apache Lucene project with the goal of furthering the development of Lucene&#8217;s open source [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/trifork.nl\/blog\/spatial-lucene-2-0\/\" \/>\n<meta property=\"og:site_name\" content=\"Trifork Blog\" \/>\n<meta property=\"article:published_time\" content=\"2009-12-31T11:12:46+00:00\" \/>\n<meta name=\"author\" content=\"Chris Male\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Chris Male\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/trifork.nl\/blog\/spatial-lucene-2-0\/\",\"url\":\"https:\/\/trifork.nl\/blog\/spatial-lucene-2-0\/\",\"name\":\"Spatial Lucene 2.0 - Trifork Blog\",\"isPartOf\":{\"@id\":\"https:\/\/trifork.nl\/blog\/#website\"},\"datePublished\":\"2009-12-31T11:12:46+00:00\",\"author\":{\"@id\":\"https:\/\/trifork.nl\/blog\/#\/schema\/person\/63ca100399079ec6e98e2b4365298806\"},\"breadcrumb\":{\"@id\":\"https:\/\/trifork.nl\/blog\/spatial-lucene-2-0\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/trifork.nl\/blog\/spatial-lucene-2-0\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/trifork.nl\/blog\/spatial-lucene-2-0\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/trifork.nl\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Spatial Lucene 2.0\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/trifork.nl\/blog\/#website\",\"url\":\"https:\/\/trifork.nl\/blog\/\",\"name\":\"Trifork Blog\",\"description\":\"Keep updated on the technical solutions Trifork is working on!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/trifork.nl\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/trifork.nl\/blog\/#\/schema\/person\/63ca100399079ec6e98e2b4365298806\",\"name\":\"Chris Male\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/trifork.nl\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8bbf7706dc08d42eaf11f2b18add0721?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8bbf7706dc08d42eaf11f2b18add0721?s=96&d=mm&r=g\",\"caption\":\"Chris Male\"},\"url\":\"https:\/\/trifork.nl\/blog\/author\/chris\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Spatial Lucene 2.0 - Trifork Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/trifork.nl\/blog\/spatial-lucene-2-0\/","og_locale":"en_US","og_type":"article","og_title":"Spatial Lucene 2.0 - Trifork Blog","og_description":"In a number of blog entries we have spoken about the spatial search functionality that we have been developing here at Jteam. In the last two weeks, I have had a chance to contribute much of this work back to the Apache Lucene project with the goal of furthering the development of Lucene&#8217;s open source [&hellip;]","og_url":"https:\/\/trifork.nl\/blog\/spatial-lucene-2-0\/","og_site_name":"Trifork Blog","article_published_time":"2009-12-31T11:12:46+00:00","author":"Chris Male","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Chris Male","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/trifork.nl\/blog\/spatial-lucene-2-0\/","url":"https:\/\/trifork.nl\/blog\/spatial-lucene-2-0\/","name":"Spatial Lucene 2.0 - Trifork Blog","isPartOf":{"@id":"https:\/\/trifork.nl\/blog\/#website"},"datePublished":"2009-12-31T11:12:46+00:00","author":{"@id":"https:\/\/trifork.nl\/blog\/#\/schema\/person\/63ca100399079ec6e98e2b4365298806"},"breadcrumb":{"@id":"https:\/\/trifork.nl\/blog\/spatial-lucene-2-0\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/trifork.nl\/blog\/spatial-lucene-2-0\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/trifork.nl\/blog\/spatial-lucene-2-0\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/trifork.nl\/blog\/"},{"@type":"ListItem","position":2,"name":"Spatial Lucene 2.0"}]},{"@type":"WebSite","@id":"https:\/\/trifork.nl\/blog\/#website","url":"https:\/\/trifork.nl\/blog\/","name":"Trifork Blog","description":"Keep updated on the technical solutions Trifork is working on!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/trifork.nl\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/trifork.nl\/blog\/#\/schema\/person\/63ca100399079ec6e98e2b4365298806","name":"Chris Male","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/trifork.nl\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8bbf7706dc08d42eaf11f2b18add0721?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8bbf7706dc08d42eaf11f2b18add0721?s=96&d=mm&r=g","caption":"Chris Male"},"url":"https:\/\/trifork.nl\/blog\/author\/chris\/"}]}},"_links":{"self":[{"href":"https:\/\/trifork.nl\/blog\/wp-json\/wp\/v2\/posts\/1596","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/trifork.nl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/trifork.nl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/trifork.nl\/blog\/wp-json\/wp\/v2\/users\/24"}],"replies":[{"embeddable":true,"href":"https:\/\/trifork.nl\/blog\/wp-json\/wp\/v2\/comments?post=1596"}],"version-history":[{"count":0,"href":"https:\/\/trifork.nl\/blog\/wp-json\/wp\/v2\/posts\/1596\/revisions"}],"wp:attachment":[{"href":"https:\/\/trifork.nl\/blog\/wp-json\/wp\/v2\/media?parent=1596"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/trifork.nl\/blog\/wp-json\/wp\/v2\/categories?post=1596"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/trifork.nl\/blog\/wp-json\/wp\/v2\/tags?post=1596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}