我正在閱讀關於全文搜索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);
}
如何創建索引?如何創建一個?
感謝