简体   繁体   English

Google App索引API贬值

[英]Google App indexing API deprication

Hi I want to implement google app indexing for android. 嗨,我想为Android实现Google应用索引。 But the documentation is confusing. 但是文档令人困惑。 Months ago I implemented local autocompletion using the following guide: https://codelabs.developers.google.com/codelabs/app-indexing/#0 几个月前,我使用以下指南实施了本地自动填充: https : //codelabs.developers.google.com/codelabs/app-indexing/#0

Now I want to enable google search feature, the doc claims that google systems will crawl my manifest file and based on intent-filters will do the indexing, here is a fragment of that doc: 现在我要启用google搜索功能,该文档声称google系统将对我的清单文件进行爬网,并基于intent-filters进行索引,这是该文档的一部分:

https://developers.google.com/app-indexing/android/publish#add-app-indexing-api-calls https://developers.google.com/app-indexing/android/publish#add-app-indexing-api-calls

So I'm confused, what is the difference between this two links? 所以我很困惑,这两个链接之间有什么区别? Should I have both of them in my code or the previous link is just the old version of doing things ? 我应该在代码中同时包含它们吗?还是以前的链接只是服务器的旧版本?

There is no difference in both the guides you mentioned. 您提到的两种指南都没有区别。 Except that in the 1st guide, you are capturing the result of AppIndex.AppIndexApi.start and writing it to log. 除了第一指南中的内容外,您正在捕获AppIndex.AppIndexApi.start的结果并将其写入日志。 And in the 2nd one, you are not. 而在第二个中,您不是。

Compare the onStart() method in both of them. 比较两者中的onStart()方法。 You are first connecting to GoogleApi client. 您首先要连接到GoogleApi客户端。 Then calling the start method of AppIndexApi . 然后调用AppIndexApi的start方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM