Skip to content

Instantly share code, notes, and snippets.

@sebaes
Created December 5, 2010 04:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebaes/728781 to your computer and use it in GitHub Desktop.
Save sebaes/728781 to your computer and use it in GitHub Desktop.
Analyzer alias problem
curl -XPUT 'http://sd:5100/indexx/typey/idz' -d '
{
"_analyzer":"all_analyzer",
"title":"a title"
}
'
http:
port: 5100-5199
gateway:
type: local
recover_after_nodes: 1
index:
number_of_shards : 1
number_of_replicas : 0
store:
niofs:
memory:
enabled: false
analysis:
analyzer:
all_analyzer:
# try uncommenting the following line to see the problem
#alias: [index_all_analyzer, search_all_analyzer]
type: custom
tokenizer: whitespace
Exception in thread "elasticsearch[Briquette]clusterService#updateTask-pool-5-thread-1" java.lang.NullPointerException
at org.apache.lucene.analysis.Analyzer.close(Analyzer.java:141)
at org.elasticsearch.index.analysis.NamedAnalyzer.close(NamedAnalyzer.java:93)
at org.elasticsearch.index.analysis.AnalysisService.close(AnalysisService.java:163)
at org.elasticsearch.indices.InternalIndicesService.deleteIndex(InternalIndicesService.java:285)
at org.elasticsearch.indices.InternalIndicesService.cleanIndex(InternalIndicesService.java:249)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyCleanedIndices(IndicesClusterStateService.java:137)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.clusterChanged(IndicesClusterStateService.java:126)
at org.elasticsearch.cluster.service.InternalClusterService$2.run(InternalClusterService.java:214)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment