15:01:12 #startmeeting openstack search 15:01:12 Meeting started Thu Jan 14 15:01:12 2016 UTC and is due to finish in 60 minutes. The chair is TravT. Information about MeetBot at http://wiki.debian.org/MeetBot. 15:01:14 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 15:01:16 The meeting name has been set to 'openstack_search' 15:02:09 mornin 15:02:25 Hello 15:02:32 okay, had some connection flakiness there! 15:02:37 o/ RickA-HP 15:02:57 did i miss any other greetings? 15:03:14 Just Steve. 15:03:57 ok. well, we'll give a minute. 15:05:03 maybe we scared 'em all away. ;D 15:05:24 :) 15:05:38 if you aren't already there, agenda is here: https://etherpad.openstack.org/p/search-team-meeting-agenda 15:05:46 #topic mitaka 3 15:06:00 #undo 15:06:01 Removing item from minutes: 15:06:05 #topic mitaka 2 15:06:12 okay, so mitaka 2 is next week 15:06:42 which means we'll have to run the release for the milestone at some point next week. 15:06:46 the big outstanding spec i can think of is the notification publishing one 15:07:11 yes, i've given it a positive vote 15:07:14 based on concepts 15:07:30 our specs don't have to be perfect waterfall design documents 15:08:00 but i don't know if lei-zh is still planning to work on it. 15:08:02 seems late for meeting 15:08:04 this release 15:08:07 o/ yingjun 15:08:16 o/ 15:08:33 i'll try to reach out to lei-zh and see if they have plans to implement 15:08:50 if it doesn't sound like it, then we'll need it to be re-proposed for n-release 15:09:03 ok. i’m fine approving the spec, though i have some concern about getting it implemented in time 15:09:42 ok, i'll mention that. will also reach out to malini 15:10:21 the other spec is zero downtime. it has a few comments to address. 15:10:22 https://review.openstack.org/#/c/245222/ 15:10:38 RickA-HP: do you want me to address the current comments and then you add anything else to it? 15:11:16 Yes, I'm also adrerssing the comments. 15:11:30 sjmc7: i also have a few response / questions inline to your comments 15:11:40 ok, will take a look this morning 15:11:41 that have followup question for you 15:12:04 RickA-HP: um, so does that mean you'll just do the next rev of it and I shouldn't? either way is okay with me. 15:12:09 I'm also breaking it down into separate tasks like we discussed. 15:12:21 I'l handle the next rev. 15:12:54 okay, that sounds good. 15:13:33 #topic bug review / bp review day 15:13:59 So, each milestone since starting this up, we've done a bug review / bp review day 15:14:05 well, not day 15:14:15 just an hour or so in the #openstack-searchlight room 15:14:22 yeah, they’ve been quite useful 15:14:33 i think we should do that again 15:14:59 unfortunately, it seems nikhil, rosmaita, and david-lyle aren't around today to see what works for them 15:15:16 maybe try asking in the sl room later today 15:15:32 yeah... or we could schedule in next week's meeting. 15:15:34 it’d be good to get some other eyes on the pile of reviews 15:15:57 definitely 15:16:44 ok, so i will follow up on this, but i'm thinking probably the week after next we should go through them all. 15:16:50 see what is left for mitaka 3 15:17:26 so next... 15:17:30 #topic python-searchlightclient CLI Discussion 15:17:58 yingjun has three reviews up on the client 15:18:16 the command structure was based on some initial input primarily from me 15:18:41 and after going through them yesterday i saw some opportunity for improvement 15:18:46 #link https://etherpad.openstack.org/p/searchlight-cli-brainstorming 15:18:55 thanks yingjun 15:19:07 so, let's just walk through it and get it settled in this meeting 15:19:51 ok 15:20:16 we can always make changes later, too - it doesn’t have to be exactly right first time 15:21:27 so Base plugin name? 15:21:39 okay, my wifi is being really flaky 15:21:50 did i miss anything since 08:19? 15:22:02 nothing useful 15:22:05 i suppose that's my time zone... 15:22:21 so, yesterday i organized and put some questions on there. 15:22:50 so for the ‘first’ patch (260899) 15:23:29 your suggestion is to use ‘openstack search query ‘{json blob}’ or ‘openstack search query-string “search string”’ 15:24:14 i think i’m ok with that; it does differ fairly radically from how most of the other OSC commands are structured but i think that’s unavoidable 15:24:46 Steve, for your first example, did you mean "query --query-string '{json blob}'" ? 15:24:52 okay, that's the 3rd patch 15:25:16 :) ok, sorry - which one should we look at first 15:25:18 line 24 in etherpad 15:25:40 openstack search i’m definitely ok with 15:25:50 ok yes, question 1 15:26:07 openstack search vs openstack searchlight 15:26:20 looks like we have 3 +1's for openstack search 15:26:21 it should definitely be the thing it does, not the project name 15:26:38 especially in case we ever get hit with some name trademark issue 15:27:06 I vote for "openstack search" also. 15:27:24 ok, rick, if you want to add +1 to the etherpad, that'd be great! 15:27:34 question 2 15:27:36 For commands like facet-list and query-string, what option should be used to limit the resource types being searched? 15:27:54 —type is what we’ve used in the query structure already 15:28:35 +1 for --type 15:28:46 it would be a lot easier to type! 15:29:08 Will there ever be other types besides resources? 15:29:29 all types will always be uniquely named 15:29:48 depending on what we call a ‘resource’, maybe - but not in the near future 15:30:35 whatever we do, we should make it consistent with searchlight manage. 15:30:42 (which isn't too late to change) 15:30:44 currently it is 15:30:46 searchlight-manage index sync --type OS::Glance::Image 15:31:09 well, we should make it consistent with the query language 15:31:17 that is true as well 15:31:25 we’ve used “type” everywhere 15:31:28 we should type to match up with the ES "type" 15:31:46 s/should/used 15:31:56 for better or worse 15:32:40 let’s go with type 15:32:56 RickA-HP: point taken about the namespacing of type, which is why i was kind of on the fence, but from a pure ease of use, --type really is a lot nicer to use repeatedly 15:33:19 that does roll into a question i had though - if we add ‘type’ as a separate param (whatever we call it) 15:33:27 In that case, we should be more unix-like and use "typ" :) 15:33:29 do we also add things like ‘sort’, ‘size’ ? 15:33:37 -t or --type :) 15:34:03 making the argument to ‘query’ just be the “query” part of the JSON payload that’s sent to the API? 15:34:14 hmm, that's a good question. 15:34:46 {“query”: {“query-string”: “something”}, “order”: “id”, “size”: 1} == openstack search query-string “something” —order id —size 1 ? 15:35:06 there are some "standard" openstack CLI options for things like sort 15:35:26 which are simply not as powerful as what you can do with native ES 15:36:04 i was thinking that we could support a simplified CLI structure for search as well that wouldn't require all the nasty json query 15:36:15 well, our “—order” could be —order ‘{“field”: “id”, “order”: “desc”}' 15:36:27 E-S supports “order”: “-id” 15:36:32 for descending 15:36:48 we could support multiple arguments too, that’d cover all the useful cases 15:38:15 i’ll add something to the etherpad 15:38:57 so, i think we should have an ability for somebody not versed in ES to still do cross resource searching with simple options 15:39:02 though i think it’s “sort” in e-s, keep misremembering 15:39:49 something like 15:39:56 openstack search faceted-query --type OS::Glance::Image --container-format raw --and-visibility shared --or-visibility public 15:40:01 It's "sort" 15:40:05 where the above are completed 15:40:20 see lines 37 - 45 15:40:25 on etherpad 15:40:38 ah, i scrolled down and saw that bit :) 15:40:59 that would be complementary to being able to just send in native syntax 15:41:04 so anything that’s not recognized as one of the top level things gets munged into a query_string i guess? 15:41:42 oh, the leading —and —or . yeah, i can see that 15:42:18 If the user can specify both, do we need to be concerned with the case where the query JSON conflicts with the options? 15:42:22 handling ‘and’ and ‘or’ might get a bit weird 15:42:35 well, that where i was thinking 15:43:24 openstack search query --query-string OR openstack search query 15:43:28 for the native queries 15:43:42 and a different command for the tab assist one 15:43:58 openstack search faceted-query 15:44:09 just as a brainstorming idea 15:46:08 is —query-string optional? 15:46:39 i’d be fine providing openstach search query and openstack search query-string “string” for now 15:46:44 along with the optional params 15:47:30 ahh... so query is just native syntax 15:47:36 Or do we think there will be other options for "openstack search query"? 15:47:37 yeah 15:47:40 even if we someday support something other than ES 15:47:45 then it is very portable 15:48:02 there could be a --syntax option later if needed for syntax negotiation 15:49:07 and openstack search query-string internally wraps it 15:49:09 so: 15:50:11 openstack search query '{ "query": { {"term": {"name": "something"}}}' 15:50:17 or some nastiness like that 15:50:33 and then 15:51:05 openstack search query-string "name: foo AND tag: database" 15:51:14 in ES query-string accepted format 15:51:21 yes. although i think the leading “query” could be left off in the first instance 15:51:43 maybe the CLI adds it if it’s not there 15:51:53 the other way would be 15:52:03 I would reverse the commands. I think "query" would be the generic type and query-string would be the specific JSON object. 15:52:14 openstack search query --native 15:52:28 openstack search query --query-string 15:53:20 rick, i'm using query string to match to the ES specific type of search 15:53:21 I like having a single query command with options associated with it. Insted of having multiple types of query commands. 15:54:01 https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html 15:54:02 option 3 - let the client figure it out :) 15:54:03 I know, I always tr yto decouple an interface from a specific back-end technology :) 15:54:12 if it’s JSON, it’s a query 15:54:48 or even simpler, if it ends and/or starts with brackets, it’s an attempt at a query 15:55:31 RickA-HP: the decouple part is where the tab complete comes in i think 15:55:44 with the openstack search faceted-query idea i mentioned earlier 15:56:25 otherwise, we can just have the available options (--query-string, --simple-query-string) come from the supported search provider 15:56:34 and --native is no parsing 15:57:47 okay, almost out of time. I think we should jump to the room to finish this part of the discussion. 15:57:51 but from a summary 15:58:25 it seems that this patch is ready except for some confusion i have on making it work with devstack 15:58:26 https://review.openstack.org/#/c/249076 15:58:55 and this patch https://review.openstack.org/#/c/255027/ 15:59:05 just needs --resource changed to --type 15:59:20 and we need to continue discussion in #openstack-searchlight 15:59:24 ok? 15:59:33 Sounds good. 15:59:36 ok 15:59:57 thanks. i'll end meeting here and see you there. :) 16:00:07 #endmeeting