Does CF API support fuzzy query?

78 views
Skip to first unread message

hai wang

unread,
Nov 3, 2014, 2:18:44 AM11/3/14
to vcap...@cloudfoundry.org
I read the document: https://github.com/cloudfoundry/cloud_controller_ng/blob/master/docs/API_Overview.md
Seems it use asterisk(*) for fuzzy query, but when I test use cf, it does not work.

admin@cf:~$ cf curl "/v2/apps?q=name:*test"
{
   "total_results": 0,
   "total_pages": 1,
   "prev_url": null,
   "next_url": null,
   "resources": []
}

admin@cf:~$ cf curl "/v2/apps?q=name%3a*test"
{
   "total_results": 0,
   "total_pages": 1,
   "prev_url": null,
   "next_url": null,
   "resources": []
}
--
Thanks
Jamee

Matthew Sykes

unread,
Nov 3, 2014, 11:20:19 PM11/3/14
to vcap...@cloudfoundry.org

--
You received this message because you are subscribed to the Google Groups "Cloud Foundry Developers" group.
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/9eac77f2-043a-4cdc-879b-0cb0e7e51017%40cloudfoundry.org.

To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.



--
Matthew Sykes
matthe...@gmail.com

Tyler Power

unread,
Nov 4, 2014, 6:20:52 AM11/4/14
to vcap...@cloudfoundry.org
The docs talk about fuzzy matches but last time I checked there was no support for it in the code. I ended up adding it in myself, I could submit a PR upstream if it's useful to you?

James Bayer

unread,
Nov 6, 2014, 1:54:20 AM11/6/14
to vcap...@cloudfoundry.org
this could certainly be useful, i think it'd be useful for dieu to understand what you changed and the scope of the impact to the APIs.

--
You received this message because you are subscribed to the Google Groups "Cloud Foundry Developers" group.

To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.



--
Thank you,

James Bayer

hai wang

unread,
Nov 9, 2014, 10:26:02 PM11/9/14
to vcap...@cloudfoundry.org
Thanks a lot, I checked the code, not supported.

在 2014年11月4日星期二UTC+8下午12时20分19秒,Matthew Sykes写道:

hai wang

unread,
Nov 9, 2014, 10:28:20 PM11/9/14
to vcap...@cloudfoundry.org
Yes, it useful to me.

在 2014年11月4日星期二UTC+8下午7时20分52秒,Tyler Power写道:

Tyler Power

unread,
Nov 9, 2014, 10:34:29 PM11/9/14
to vcap...@cloudfoundry.org
There were surprisingly few internal changes needed, and no changes to the api. I'd have to go back and double check but from memory I just made the functionality consistent with what is already documented. As there's not a lot to it I'll try put forward a PR this week.

Cheers,
Tyler
Reply all
Reply to author
Forward
0 new messages