This file contains 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
HTTP Status 500 - Error starting org.neo4j.kernel.EmbeddedGraphDatabase, /var/lib/neo4j-community-2.1.7/data/graph.db | |
type Exception report | |
message Error starting org.neo4j.kernel.EmbeddedGraphDatabase, /var/lib/neo4j-community-2.1.7/data/graph.db | |
description The server encountered an internal error that prevented it from fulfilling this request. | |
exception |
This file contains 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 -XGET 'http://localhost:9200/ninja/interests/_search?pretty=true' -d ' | |
{ | |
"query":{ | |
"query_string":{"query":"entrepreneurs"} | |
}, | |
"highlight" : { | |
"fields" : { | |
"name":{} | |
} | |
} |
This file contains 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 -XGET 'http://localhost:9200/ninja/interests/_search?pretty=true' -d ' | |
{ | |
"query":{ | |
"query_string":{"query":"entreprene"} | |
}, | |
"highlight" : { | |
"fields" : { | |
"name":{} | |
} | |
} |
This file contains 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 -XGET 'http://localhost:9200/ninja/interests/_search?pretty=true' -d ' | |
{ | |
"query":{ | |
"query_string":{"query":"entrep"} | |
}, | |
"highlight" : { | |
"fields" : { | |
"name":{} | |
} | |
} |
This file contains 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 -XGET 'http://localhost:9200/ninja/interests/_search?pretty=true' -d ' | |
{ | |
"query":{ | |
"query_string":{"query":"bas"} | |
}, | |
"highlight" : { | |
"fields" : { | |
"name":{} | |
} | |
} |
This file contains 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 -XGET 'http://localhost:9200/ninja/interests/_search?pretty=true' -d ' | |
{ | |
"query":{ | |
"query_string":{"query":"trek"} | |
}, | |
"highlight" : { | |
"fields" : { | |
"name":{} | |
} | |
} |
This file contains 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/ninja -d ' | |
{ | |
"settings" : { | |
"analysis" : { | |
"filter": { | |
"mynGram" : {"type": "nGram", "min_gram": 2, "max_gram": 10} | |
}, | |
"analyzer" : { | |
"stem" : { | |
"tokenizer" : "standard", |
This file contains 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 -XGET 'http://localhost:9200/_cluster/health?pretty=true' | |
{ | |
"cluster_name" : "elasticsearch", | |
"status" : "yellow", | |
"timed_out" : false, | |
"number_of_nodes" : 1, | |
"number_of_data_nodes" : 1, | |
"active_primary_shards" : 15, | |
"active_shards" : 15, | |
"relocating_shards" : 0, |