Skip to content

Instantly share code, notes, and snippets.

@rajesh07
rajesh07 / elastic_index_error.txt
Created May 2, 2013 12:41
Error occurred at the index time.
[2013-05-01 03:49:40,156][WARN ][index.merge.scheduler ] [Cable] [index_phase_one][2] failed to merge
java.io.FileNotFoundException: /var/lib/elasticsearch/myElasticsearch/nodes/0/indices/index_phase_one/2/index/_r.prx (Too many open files)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:233)
at org.apache.lucene.store.SimpleFSDirectory$SimpleFSIndexInput$Descriptor.<init>(SimpleFSDirectory.java:71)
at org.apache.lucene.store.SimpleFSDirectory$SimpleFSIndexInput.<init>(SimpleFSDirectory.java:98)
at org.apache.lucene.store.NIOFSDirectory$NIOFSIndexInput.<init>(NIOFSDirectory.java:92)
at org.apache.lucene.store.NIOFSDirectory.openInput(NIOFSDirectory.java:79)
at org.elasticsearch.index.store.Store$StoreDirectory.openInput(Store.java:537)
at org.apache.lucene.index.SegmentCoreReaders.<init>(SegmentCoreReaders.java:96)
@rajesh07
rajesh07 / mapping.json
Last active December 13, 2015 22:39
Analyzer Mapping
"index" : {
"analysis" : {
"analyzer" : {
"manualindexanalyzer" : {
"type":"custom",
"tokenizer" : "whitespace",
"filter" : ["lowercase","asciifolding","length","mystopword","myworddelimiter","myshingle","mystemmer","myelision"],
"char_filter" :["html_strip"]
},
"manualsearchanalyzer" : {