use of com.eden.orchid.impl.indexing.OrchidRootExternalIndex in project Orchid by JavaEden.
the class OrchidGenerators method buildExternalIndex.
private void buildExternalIndex() {
this.externalIndex = new OrchidRootExternalIndex();
JSONElement externalIndexReferences = context.query("options.data.externalIndex");
if (OrchidUtils.elementIsArray(externalIndexReferences)) {
JSONArray externalIndex = (JSONArray) externalIndexReferences.getElement();
for (int i = 0; i < externalIndex.length(); i++) {
JSONObject indexJson = this.orchidResources.loadAdditionalFile(externalIndex.getString(i));
if (indexJson != null) {
OrchidIndex index = OrchidIndex.fromJSON(context, indexJson);
this.externalIndex.addChildIndex(index);
}
}
}
}
Aggregations