Paste P7837

(An Untitled Masterwork)
ActivePublic

Authored by EBernhardson on Thu, Nov 22, 9:47 PM.
Tags
None
Subscribers
None
Tokens
"Yellow Medal" token, awarded by dcausse.
ebernhardson@mwmaint1002:~/home-terbium$ cat test.q
{
"suggest": {
"some name": {
"text": "tayps of wlding difacts",
"phrase": {
"field": "suggest",
"max_errors": 4,
"size": 1,
"direct_generator": [{
"size": 40,
"field": "suggest"
}]
}
}
}
}
ebernhardson@mwmaint1002:~/home-terbium$ curl https://relforge1001.eqiad.wmnet:9243/enwiki_suggest_20181119/page/_search?pretty -d @test.q
{
"took" : 59,
"timed_out" : false,
"_shards" : {
"total" : 8,
"successful" : 8,
"failed" : 0
},
"hits" : {
"total" : 0,
"max_score" : 0.0,
"hits" : [ ]
},
"suggest" : {
"some name" : [
{
"text" : "tayps of wlding difacts",
"offset" : 0,
"length" : 23,
"options" : [
{
"text" : "types of welding defects",
"score" : 2.0229227E-5
}
]
}
]
}
}