使用android应用程序索引删除索引数据(不在谷歌搜索结果中显示索引数据)
我可以使用“AppIndex.AppIndexApi.start(mGoogleApiClient,indexAction)”在默认google搜索结果(自动完成)上显示索引内容 但在那之后,我决定从谷歌搜索结果中删除一些索引内容(自动完成) 例如: 在应用程序的第一个版本中,索引内容如下。 1.虚拟内容(android)-app://com.myindexingapp/sample/Dummy (内容) 2.虚拟内容2(android)-app://com.myindexingapp/sample/Dummy 内容2) 我可以在我的设备上看到谷歌搜索结果中的虚拟内容和虚拟内容2 在第二个版本中,我只想显示虚拟内容 意味着我想取消虚拟内容2(android)的索引-app://com.myindexingapp/sample/Dummy 内容2) 有人能帮我吗?我们怎样才能做到这一点 我尝试使用“AppIndex.AppIndexApi.end(mGoogleApiClient,indexAction);” 使用相同的操作,但不起作用使用android应用程序索引删除索引数据(不在谷歌搜索结果中显示索引数据),android,android-app-indexing,firebase-app-indexing,Android,Android App Indexing,Firebase App Indexing,我可以使用“AppIndex.AppIndexApi.start(mGoogleApiClient,indexAction)”在默认google搜索结果(自动完成)上显示索引内容 但在那之后,我决定从谷歌搜索结果中删除一些索引内容(自动完成) 例如: 在应用程序的第一个版本中,索引内容如下。 1.虚拟内容(android)-app://com.myindexingapp/sample/Dummy (内容) 2.虚拟内容2(android)-app://com.myindexingapp/samp
在这里,我使用“GoogleAppClient”和“AppIndex.AppIndexApi”对数据进行索引(在第一个版本中没有使用最新的firebase索引)。使用以下代码修复了此问题
com.google.firebase.appindexing.Action fbIndexAction = Actions.newView(title, BASE_APP_URI.toString());
Log.v(LOG_TAG, "@@@@ data path here " + title + " uri here " + BASE_APP_URI);
FirebaseUserActions.getInstance().end(fbIndexAction);
FirebaseAppIndex.getInstance().remove(BASE_APP_URI.toString());