I have gone through this https://mcmap.net/q/1627837/-android-app-indexing-api-description-field. It discusses the use of description
field in the App Indexing api
. While calling this api I am setting both title
and description
fields. Below is the sample code
Thing object = new Thing.Builder()
.setName(title)
.setUrl(uri)
.setDescription(description)
.build();
return new Action.Builder(Action.TYPE_VIEW)
.setObject(object)
.setActionStatus(Action.STATUS_TYPE_COMPLETED)
.build();
But when I use the google app search and type in a keyword which was there in the title
, I am able to see the autocomplete results. But if I type a keyword which was present in description
field, I am not able to get the auto complete results. So what should I do to get the content of description field to app index?
And since this is a news reading application. So I am setting description to the first paragraph of the news content. The first paragraph can be as long as 500 characters. Is there any recommendation on the content length which we pass to the description field?