How to check hebrew Analyzer for Elasticsearch


(ganeshbabu) #1

Hi Team,

We are using Elasticsearch 1.7.2 and I installed Hebrew analyzer(plugin) in ES by following the steps given in the below link.

https://github.com/synhershko/elasticsearch-analysis-hebrew

I created sample mapping by using Hebrew analyzer.

PUT test_cval/cval22/_mapping
{
"cval22": {
"_all" : {"enabled" : false},
"properties": {
"CV_ID": {
"type": "long",
"index": "not_analyzed",
"doc_values": "true",
"norms":{
"enabled":"false"
} },
"FLG": {
"properties": {
"AD": {
"type": "string",
index": "not_analyzed",
"doc_values": "true",
"norms":{
"enabled":"false"
}
} } },
"MAIN_DSCR": {
"properties": {
"MAIN_CV_DSCR22": {
"type": "string",
"fields": {
"MAIN_CV_DSCR22_RAW": {
"type": "string",
"index": "not_analyzed",
"analyzer":"hebrew_query",
"doc_values": "true",
"norms":{
"enabled":"false"
},
"fielddata":{
"format":"disabled"
} },
"MAIN_CV_DSCR22_HE": {
"type": "string",
"analyzer": "hebrew",
"fielddata":{
"format":"disabled"
} } }
} } },
"ALT_DSCR": {
"properties": {
"ALT_CV_DSCR22": {
"type": "string",
"fields": {
"ALT_CV_DSCR22_RAW": {
"type": "string",
"index": "not_analyzed",
"analyzer":"hebrew_query",
"doc_values": "true",
"norms":{
"enabled":"false"
},
"fielddata":{
"format":"disabled"
} },
"ALT_CV_DSCR22_HE": {
"type": "string",
"analyzer": "hebrew",
"fielddata":{
"format":"disabled"
} } }
} } }
} } }

The easiest way to make sure the plugin is installed correctly is to request /_hebrew/check-word/בדיקה on your server
(for example: browse to http://localhost:9200/_hebrew/check-word/בדיקה). If it loads, it means everything is set up and you are good to go.

I am checking hebrew analyzer is properly installed or not by using the following url.
** http://10.7.146.21:9200/_hebrew/check-word/בדיקה** but I am getting error as {"error":"NullPointerException[null]","status":500}

Can anyone help me how to check hebrew analyzer plugin is working or not?

Thanks,
Ganeshbabu R


(system) #2