Not able to filter Swift objects by path using query_string (cli and horizon)

Bug #1559251 reported by Travis Tripp
6
This bug affects 1 person
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/bar/object.txt

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:

https://review.openstack.org/#/c/227036/

Changed in searchlight:
milestone: none → mitaka-rc1
description: updated
Revision history for this message
Travis Tripp (travis-tripp) wrote :

This is solved by using phrase queries, e.g. "foo/bar/".

Changed in searchlight:
milestone: mitaka-rc1 → newton-1
status: New → Incomplete
Changed in searchlight:
milestone: newton-1 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.