Page MenuHomePhabricator
Paste P13023

(An Untitled Masterwork)
ActivePublic

Authored by EBernhardson on Oct 19 2020, 6:11 PM.
Tags
None
Referenced Files
F32399367: raw-paste-data.txt
Oct 19 2020, 6:11 PM
Subscribers
None
ebernhardson@elastic2040:~$ cat test.q
{
"analyzer": "text",
"text": "Afrikа"
}
ebernhardson@elastic2040:~$ curl -H 'Content-Type: application/json' -XPOST http://localhost:9200/afwiki_content/_analyze?pretty -d @test.q
{
"tokens" : [
{
"token" : "afrikа",
"start_offset" : 0,
"end_offset" : 6,
"type" : "<ALPHANUM>",
"position" : 0
},
{
"token" : "afrika",
"start_offset" : 0,
"end_offset" : 6,
"type" : "<ALPHANUM>",
"position" : 0
}
]
}
ebernhardson@elastic2040:~$