elastic icon indicating copy to clipboard operation
elastic copied to clipboard

Deprecated APIs

Open vsiv opened this issue 10 years ago • 3 comments

@olivere Do you think it make sense to warn developers of using deprecated apis via logging (might need to introduce a dev/prod mode to turn these off). For example, count search type is now deprecated as of 2.0. It might make it easier for dev's this way to stay away from deprecated apis.

Just a thought. Feel free to close this, as its a bit out there 🎱

V PS. Quick search link for deprecated apis

vsiv avatar May 23 '16 02:05 vsiv

Hmm... sounds like a good idea until you try to implement it. How do I figure out if someone uses search_type? I would probably need to inspect parameters, right? Do you really want to go down that route? Besides, I think that most of the warnings would be because of Elastic using deprecated APIs and/or parameters. :-)

It's really time consuming to stay on top of the large API surface. You could figure out the top-level issues on the Elasticsearch GitHub repository that track these changes. But it's a full-time job I suppose, and I currently don't have the time to do that TBH.

But thanks for your idea. Maybe we can find a simple way to implement that. Will keep it open and add as "enhancement" to let it sink in.

olivere avatar May 23 '16 06:05 olivere

@olivere agree! another option is to close this for now, until more users request it.

vsiv avatar May 23 '16 08:05 vsiv

I think I'll close this for now. Maybe ES will return something from the server-side in future.

Still, thanks for the idea!

olivere avatar Jun 06 '16 12:06 olivere