Metadefs have no 'name'; tricky for sorting; problematic for search
Bug #1501123 reported by
Steve McLellan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Searchlight |
Fix Released
|
High
|
Lakshmi N Sampath |
Bug Description
Metadefs have no 'name' field (because they use namespace), which matches their data, but since name will likely be a common sort field it will potentially cause problems with sort. Several options:
* add one
* add 'unmapped_type' to sort fields
* not worry about it
Changed in searchlight: | |
milestone: | none → liberty-rc3 |
Changed in searchlight: | |
assignee: | nobody → Lakshmi N Sampath (lakshmi-sampath) |
Changed in searchlight: | |
status: | Fix Committed → Fix Released |
Changed in searchlight: | |
milestone: | liberty-rc3 → 0.1.0.0 |
To post a comment you must log in.
When doing cross resource searching on name (no type specified), the current queries result in zero results being returned if 1) OS::Glance::Metadef are specified first or 2) no types are specified (the server automatically adds all the types to the query to elasticsearch.
For example, the below will get Nova results (assume server with name demo):
{ :Server" , "OS::Glance: :Metadef" ],
" query_string" : {
"fuzzy_ prefix_ length" : 2,
"fields" : [
"name"
],
"query" : "demo~"
}
"type": ["OS::Nova:
"query": {
"bool": {
"must": [
{
}
]
}
}
}
The below will not:
{ :Metadef" , "OS::Nova: :Server" ],
" query_string" : {
"fuzzy_ prefix_ length" : 2,
"fields" : [
"name"
],
"query" : "demo~"
}
"type": ["OS::Glance:
"query": {
"bool": {
"must": [
{
}
]
}
}
}
And neither will the below:
{
" query_string" : {
"fuzzy_ prefix_ length" : 2,
"fields" : [
"name"
],
"query" : "demo~"
}
"query": {
"bool": {
"must": [
{
}
]
}
}
}