Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P8322
simplified suggest query
Active
Public
Actions
Authored by
EBernhardson
on Apr 1 2019, 3:28 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F28547973: raw.txt
Apr 1 2019, 3:28 PM
2019-04-01 15:28:27 (UTC+0)
Subscribers
None
ebernhardson@relforge1001:~$ cat test.q
{
"suggest": {
"some name": {
"text": "whose knowledge",
"phrase": {
"field": "suggest",
"max_errors": 4,
"size": 1,
"direct_generator": [{
"size": 40,
"field": "suggest"
}]
}
}
}
}
ebernhardson@relforge1001:~$ curl -H 'Content-Type: application/json' https://search.svc.eqiad.wmnet:9243/enwiki_content/page/_search?pretty -d @test.q
{
"took" : 5,
"timed_out" : false,
"_shards" : {
"total" : 7,
"successful" : 7,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : 0,
"max_score" : 0.0,
"hits" : [ ]
},
"suggest" : {
"some name" : [
{
"text" : "whose knowledge",
"offset" : 0,
"length" : 15,
"options" : [ ]
}
]
}
}
Event Timeline
EBernhardson
created this paste.
Apr 1 2019, 3:28 PM
2019-04-01 15:28:27 (UTC+0)
Log In to Comment