Ok. I reinstalled Elasticsearch and did this
curl -XPUT localhost:9200/twitter/_settings -d '
{
"index" : {
"number_of_replicas" : 4, "type":
"node" ,"index.cache.filter.max_size" : "20%" ,
"index_cache_field_expiry" : "5m"
}
} '
Then I did some changes in my elasticsearch.yml file. What i did was
index :
analysis :
analyzer :
analyzer1 :
type : custom
tokenizer : tokenizer1
filter : [ filter2 , filter1 , filter5 , filter3 ]
char_filter : char_filter1
tokenizer :
tokenizer1 :
type : pattern
pattern : "(\W*,\W*)|(\WOR\W)|(\WAND\W)|(\W\W*)|(\d
\d*)"
filter :
filter1 :
type : stop
stopwords_path : "stopwords.txt"
filter2 :
type : lowercase
filter3 :
type : synonym
synonyms_path : "/home/nachiket/Softwares/elasticsearch-0.16.2/
config/synonym.txt"
filter4 :
type : stemmer
language : minimal_english
filter5 :
type : shingle
max_shingle_size : 4
char_filter :
char_filter :
char_filter1 :
type : html_strip
escaped_tags : [ xxx , yyy ]
read_ahead : 1024
And I again started getting error message after any query:
{"error":"SearchPhaseExecutionException[Failed to execute phase
[query], total failure; shardFailures {[na][twitter][0]: No active
shards}{[na][twitter][1]: No active shards}{[na][twitter][2]: No
active shards}{[na][twitter][3]: No active shards}{[na][twitter]
[4]: No active shards}]","status":500}
I am stuck in the middle of my work. Can somebody please help me with
it ???
Regards.
On Jul 1, 10:27 am, nachiket bhagwat nachiketbhag...@gmail.com
wrote:
In logs I am getting this.
[2011-07-01 09:54:17,342][INFO ][cluster.metadata ] [Leash]
Updating number_of_replicas to [4] for indices [test]
[2011-07-01 09:54:49,865][WARN ][http.netty ] [Leash]
Caught exception while handling client http traffic, closing
connection
java.lang.IllegalStateException: cannot send more responses than
requests
at
org.elasticsearch.common.netty.handler.codec.http.HttpContentEncoder.writeRequested(HttpContentEncoder.java:
102)
at
org.elasticsearch.common.netty.channel.SimpleChannelHandler.handleDownstream(SimpleChannelHandler.java:
266)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:
568)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:
563)
at
org.elasticsearch.common.netty.channel.Channels.write(Channels.java:
611)
at
org.elasticsearch.common.netty.channel.Channels.write(Channels.java:
578)
at
org.elasticsearch.common.netty.channel.AbstractChannel.write(AbstractChannel.java:
259)
at
org.elasticsearch.http.netty.NettyHttpChannel.sendResponse(NettyHttpChannel.java:
144)
at
org.elasticsearch.rest.action.admin.indices.settings.RestUpdateSettingsAction
$1.onResponse(RestUpdateSettingsAction.java:81)
at
org.elasticsearch.rest.action.admin.indices.settings.RestUpdateSettingsAction
$1.onResponse(RestUpdateSettingsAction.java:74)
at org.elasticsearch.action.support.BaseAction$ThreadedActionListener
$1.run(BaseAction.java:84)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
1110)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
On Jul 1, 10:08 am, nachiket bhagwat nachiketbhag...@gmail.com
wrote:
Hi.
My Elasticsearch was working fine before I tried to configure cache
filter. I tried to do this ->
curl -XPUT localhost:9200/twitter/_settings -d
{
"index" : {
"number_of_replicas" : 4, "type":
"node" ,"index.cache.filter.max_size" : "20%" ,
"index_cache_field_expiry" : "5m"
}
}
And now I am unable to run evan a simple query. I get the message ->
{
"error" : "SearchPhaseExecutionException[Failed to execute phase
[query], total failure; shardFailures {[na][twitter][0]: No active
shards}{[na][twitter][1]: No active shards}{[na][twitter][2]: No
active shards}{[na][twitter][3]: No active shards}{[na][twitter]
[4]: No active shards}]",
"status" : 500
}
Can somebody please help to understand what I did and how to fix it?
Regards.