This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -XPUT localhost:9200/test1 -d '{ | |
| "settings": { | |
| "number_of_shards": 1, | |
| "number_of_replicas": 0 | |
| }, | |
| "mappings": { | |
| "type1": { | |
| "properties": { | |
| "geofield": { | |
| "type": "geo_point" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -XPUT "http://localhost:9200/test" -d ' | |
| { | |
| "mappings": { | |
| "document": { | |
| "properties": { | |
| "date": { | |
| "type": "date", | |
| "store": "true" | |
| }, | |
| "date2": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -XPUT 'http://localhost:9200/index1' -d ' | |
| { | |
| "mappings": { | |
| "parent": { | |
| "properties": { | |
| "children": { | |
| "type": "nested", | |
| "properties": { | |
| "colour": { | |
| "type": "string" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -XPUT 'http://localhost:9200/index' | |
| curl -XPUT 'http://localhost:9200/index/thing/1' –d ' | |
| { | |
| "stuff": "blah" | |
| } | |
| ' | |
| # works | |
| curl -XPOST 'http://localhost:9200/index/_search' –d ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| curl -XPUT 'http://localhost:9200/myindex/' -d ' | |
| { | |
| "settings": { | |
| "index": { | |
| "number_of_shards": 1, | |
| "number_of_replicas": 0 | |
| } | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example; | |
| import java.net.URL; | |
| import javax.servlet.ServletContextEvent; | |
| import javax.servlet.ServletContextListener; | |
| public class TestFilter implements ServletContextListener | |
| { | |
| public void contextInitialized(ServletContextEvent sce) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <!-- Based off https://github.com/xguaita/Leaflet.MapCenterCoord/blob/1211f46947c0f375a717561b9230c8303a178062/examples/simple.html --> | |
| <html> | |
| <head> | |
| <title>Center Position Control - Simple</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> | |
| <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.5/leaflet.css" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <!-- fork of http://leafletjs.com/examples/quick-start-example.html --> | |
| <head> | |
| <title>Leaflet Quick Start Guide Example</title> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> | |
| <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Component } from 'react'; | |
| import SkyLight from 'react-skylight'; | |
| class Hello extends Component { | |
| constructor(props) { | |
| super(props) | |
| } | |
| render() { | |
| return ( |