use of teammates.storage.search.StudentSearchDocument in project teammates by TEAMMATES.
the class StudentsDb method putDocuments.
/**
* Batch creates or updates search documents for the given students.
*/
public void putDocuments(List<StudentAttributes> students) {
List<SearchDocument> studentDocuments = new ArrayList<>();
for (StudentAttributes student : students) {
studentDocuments.add(new StudentSearchDocument(student));
}
putDocuments(Const.SearchIndex.STUDENT, studentDocuments);
}
Aggregations