Not able to filter Swift objects by path using query_string (cli and horizon)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Searchlight |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
Sending a query_string in for OS::Swift::Object doesn't work for filtering by path. I assume this is due to the tokenization of the name field.
We need to figure out how to handle this, either through an artificial non-analyzed path field at indexing time or in the client (cli and ui).
with the following objects, i'm not able to limit past the slash:
JE/baraaa.pem
JE/object_8
JE/object_9
JE/Screen Shot 2016-02-26 at 6.49.51 AM.png
JE/Screen Shot 2016-02-12 at 1.08.31 PM.png
Tried many variations, but I couldn't really filter a path effectively. I think this would just be worse if it was deeper paths (e.g. JE/foo/
je (shows all above)
je/ (shows all above)
je/o
je/o*
je/object_8
"je/o"
"je/o*" (phrase)
Please use openstack search query "" for CLI and latest searchlight horizon patch for viewing in horizon:
Changed in searchlight: | |
milestone: | none → mitaka-rc1 |
description: | updated |
Changed in searchlight: | |
milestone: | mitaka-rc1 → newton-1 |
status: | New → Incomplete |
Changed in searchlight: | |
milestone: | newton-1 → none |
This is solved by using phrase queries, e.g. "foo/bar/".