>
> Hey Binh,
>
> thanks for your reply!
>
> I tried the following:
>
> 1.
> POST localhost:9200/index_v2/
>
> {
> "settings": {
> "analysis": {
> "filter": {
> "synonym": {
> "type": "synonym",
> "synonyms": [
> "Schraubenzieher, Schraubendreher",
> "Inbus, Innensechskant, Imbus, Innen-6-Kant",
> "Innensechskantschlüssel, Inbusschlüssel",
> "Bauhelm, Schutzhelm"
> ],
> "ignore_case": true,
> "expand": true
> }
> },
> "analyzer": {
> "synonym_analyzer": {
> "type":"custom",
> "tokenizer": "whitespace",
> "filter": [
> "synonym",
> "lowercase",
> "asciifolding"
> ]
> }
> }
> }
> }
> }
>
> 2.
> POST localhost:9200/index_v2/_analyze?analyzer=synonym_analyzer
> 'Inbus'
>
> Output:
> {
>     "tokens": [
>         {
>             "token": "'inbus'",
>             "start_offset": 0,
>             "end_offset": 7,
>             "type": "word",
>             "position": 1
>         }
>     ]
> }
>
> 3.
> POST localhost:9200/index_v2/_analyze?analyzer=synonym_analyzer
> 'Der Inbus ist'
>
> Output:
> {
>     "tokens": [
>         {
>             "token": "'der",
>             "start_offset": 0,
>             "end_offset": 4,
>             "type": "word",
>             "position": 1
>         },
>         {
>             "token": "inbus",
>             "start_offset": 5,
>             "end_offset": 10,
>             "type": "SYNONYM",
>             "position": 2
>         },
>         {
>             "token": "innensechskant",
>             "start_offset": 5,
>             "end_offset": 10,
>             "type": "SYNONYM",
>             "position": 2
>         },
>         {
>             "token": "imbus",
>             "start_offset": 5,
>             "end_offset": 10,
>             "type": "SYNONYM",
>             "position": 2
>         },
>         {
>             "token": "innen-6-kant",
>             "start_offset": 5,
>             "end_offset": 10,
>             "type": "SYNONYM",
>             "position": 2
>         },
>         {
>             "token": "ist'",
>             "start_offset": 11,
>             "end_offset": 15,
>             "type": "word",
>             "position": 3
>         }
>     ]
> }
>
> I have changed to 1.0.1 but the behavior was the same on 1.2..
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/18c6aa41-12b7-4301-8661-53162454f158%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to