Skip to content

Instantly share code, notes, and snippets.

View mapping.json
{
"settings": {
"analysis": {
"analyzer": {
"issn_analyser": {
"tokenizer": "whitespace",
"filter": [
"lowercase",
"trim"
],
View shell.sh
sudo ./shell.sh mapserver
@tobinski
tobinski / .htaccess
Last active Aug 29, 2015
Small script for the dynamic creation of htaccess
View .htaccess
# .htaccess
Allow from hostname.dyndns.com
# This is not working
View map function orte
function(doc) {
if(doc.namen.length > 0) {
for(var idx in doc.namen) {
if(doc.namen[idx].ereignisse.length > 0) {
for(var ide in doc.namen[idx].ereignisse){
if(doc.namen[idx].ereignisse[ide].beobachtungen.length > 0){
for(var idb in doc.namen[idx].ereignisse[ide].beobachtungen){
if(doc.namen[idx].ereignisse[ide].beobachtungen[idb].beobachtungsklasse && doc.namen[idx].ereignisse[ide].beobachtungen[idb].ort) {
emit([doc.namen[idx].ereignisse[ide].beobachtungen[idb].beobachtungsklasse,doc.namen[idx].ereignisse[ide].beobachtungen[idb].ort],null);
}