我正在阅读关于全文搜索api(java)在谷歌应用程序引擎中的文档https://developers.google.com/appengine/docs/java/search/overview。他们有获得索引的例子:在Google App Engine中为全文搜索创建索引
public Index getIndex() {
IndexSpec indexSpec = IndexSpec.newBuilder()
.setName("myindex")
.setConsistency(Consistency.PER_DOCUMENT)
.build();
return SearchServiceFactory.getSearchService().getIndex(indexSpec);
}
如何创建索引?如何创建一个?
感谢