Category Archives: Programming

Elasticsearch Geo-Shape Slow Indexing Performance – Solved

Elasticsearch Geo-Shape Slow Indexing Performance - Solved

Elasticsearch Geo-Shape Slow Indexing Performance – Solved

Elasticsearch Geo-Shape Slow Indexing Performance - Solved

           We were using Hosted Elasticsearch 1.4.4 to index geo-shape data with the following field mapping. { “geoShapeField”: {     “type”: “geo_shape”,        “tree”: “quadtree”,        “tree_levels”: 26 //Or use precision: “1m”,        “distance_error_pct”: 0.025 // Optional, 0.025 is default } }      … Read More »

Location – Latitude/Longitude (Lat/Lon) to Degrees Minutes Seconds (DMS) Conversion – JavaScript

Location - Latitude Longitude (LatLon) to Degrees Minutes Seconds (DMS) Conversion - JavaScript

Location – Latitude/Longitude (Lat/Lon) to Degrees Minutes Seconds (DMS) Conversion – JavaScript

Location - Latitude Longitude (LatLon) to Degrees Minutes Seconds (DMS) Conversion - JavaScript

Sample JavaScript Program: function truncate(n) { return n > 0 ? Math.floor(n) : Math.ceil(n); } let getDMS = function (dd, longOrLat) { let hemisphere = /^[WE]|(?:lon)/i.test(longOrLat) ? dd < 0 ? “W” : “E” : dd < 0 ? “S” : “N”; const absDD = Math.abs(dd); const degrees = truncate(absDD); const minutes = truncate((absDD -… Read More »

cannot change DocValues type from SORTED to SORTED_SET – DataStax Graph – Titan – Solr

cannot change DocValues type from SORTED to SORTED_SET – DataStax Graph – Titan – Solr

Are you facing these errors??? cannot change docvalues type from sorted_set to sorted for field field_name cannot change docvalues type from sorted to sorted_set for field field_name No worries. We have the solution. First of all we need to know what DocValues means in Solr. You will find a lot of information in the internet. Now… Read More »