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
"title" : { | |
"type" : "multi_field", | |
"fields" : { | |
"title" : { | |
"type" : "string", | |
"search_analyzer" : "str_search_analyzer", | |
"index_analyzer" : "str_index_analyzer" | |
}, | |
"title_sort" : { | |
"index" : "not_analyzed" |
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
# see https://github.com/jprante/elasticsearch-river-oai | |
# harvest | |
curl -XPUT 'localhost:9200/_river/aachen/_meta' -d '{ | |
"type" : "oai", | |
"oai" : { | |
"url" : "http://darwin.bth.rwth-aachen.de/opus3/oai2/oai2.php", | |
"set" : "pub-type:8" | |
} |
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
syn-setup.json: | |
{ | |
"settings": { | |
"index" : { | |
"analysis" : { | |
"analyzer" : { | |
"synonym" : { | |
"tokenizer" : "whitespace", | |
"filter" : ["synonym"] |
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 -XDELETE 'http://localhost:9200/test/' | |
curl -XPOST 'http://localhost:9200/_refresh' | |
curl -XPUT 'http://localhost:9200/test/' -d '{ | |
"mappings" : { | |
"title" : { | |
}, | |
"library" : { | |
"_parent" : { | |
"type" : "title" | |
} |
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
{ | |
"title" : { | |
"_timestamp" : { | |
"enabled" : true, | |
"path" : "xbib:updated" | |
}, | |
"_boost" : { | |
"name" : "xbib:boost", | |
"null_value" : 1.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
./bin/elasticsearch -f | |
[2012-07-20 22:55:59,016][INFO ][node ] [Dirtnap] {0.19.8}[30505]: initializing ... | |
[2012-07-20 22:55:59,025][INFO ][plugins ] [Dirtnap] loaded [river-wikipedia], sites [] | |
[2012-07-20 22:56:00,987][INFO ][node ] [Dirtnap] {0.19.8}[30505]: initialized | |
[2012-07-20 22:56:00,989][INFO ][node ] [Dirtnap] {0.19.8}[30505]: starting ... | |
[2012-07-20 22:56:01,083][INFO ][transport ] [Dirtnap] bound_address {inet[/0.0.0.0:9300]}, publish_address {inet[/192.168.1.113:9300]} | |
[2012-07-20 22:56:04,163][INFO ][cluster.service ] [Dirtnap] new_master [Dirtnap][YD0w1fNHROuCn35WMQCKSg][inet[/192.168.1.113:9300]], reason: zen-disco-join (elected_as_master) | |
[2012-07-20 22:56:04,195][INFO ][discovery ] [Dirtnap] elasticsearch/YD0w1fNHROuCn35WMQCKSg | |
[2012-07-20 22:56:04,214][INFO ][http ] [Dirtnap] bound_address {inet[/0.0.0.0:9200]}, publish_address {inet[/192.168.1.113:9200 |
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 -XDELETE 'http://localhost:9200/test/' | |
curl -XPOST 'http://localhost:9200/test' -d '{ | |
"settings" : { | |
"index" : { | |
"analysis" : { | |
"analyzer" : { | |
"icu" : { | |
"type" : "custom", | |
"tokenizer" : "icu_tokenizer", |
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 myPluginPackage; | |
import org.elasticsearch.common.component.AbstractComponent; | |
import org.elasticsearch.common.inject.Inject; | |
import org.elasticsearch.node.service.NodeService; | |
import org.elasticsearch.action.admin.cluster.node.stats.NodeStats; | |
public class MyClassInAPlugin extends AbstractComponent { |
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/topic/document/_mapping' -d ' | |
{ | |
"document" : { | |
"properties" : { | |
"subject" : { "type" : "string" }, | |
"post" : { "type" : "string" }, | |
"plz" : { "type" : "string" }, | |
"position" : { "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
Jorg-Prantes-MacBook-Pro:mongodb-osx-x86_64-2.2.1 joerg$ mkdir -p data/rs0-0 | |
Jorg-Prantes-MacBook-Pro:mongodb-osx-x86_64-2.2.1 joerg$ ./bin/mongod --dbpath data/rs0-0 --port 27017 --replSet rs0 | |
Wed Oct 31 15:57:06 [initandlisten] MongoDB starting : pid=13387 port=27017 dbpath=data/rs0-0 64-bit host=Jorg-Prantes-MacBook-Pro.local | |
Wed Oct 31 15:57:06 [initandlisten] db version v2.2.1, pdfile version 4.5 | |
Wed Oct 31 15:57:06 [initandlisten] git version: d6764bf8dfe0685521b8bc7b98fd1fab8cfeb5ae | |
Wed Oct 31 15:57:06 [initandlisten] build info: Darwin erh-tnt.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386 BOOST_LIB_VERSION=1_49 | |
Wed Oct 31 15:57:06 [initandlisten] options: { dbpath: "data/rs0-0", port: 27017, replSet: "rs0" } | |
Wed Oct 31 15:57:06 [initandlisten] journal dir=data/rs0-0/journal | |
Wed Oct 31 15:57:06 [initandlisten] recover : no journal files present, no recovery needed | |
Wed Oct 31 15:57:06 [websvr] admin web console waiting for connections on |