まさにこの上で私のブログの記事を参照してください:Efficient Keyword Search with Relation Index Entities and Objectify for Google Datastore。 Relation Index EntitiesとObjectifyを使用してリストプロパティで検索を実装する方法について説明します。
は、要約すると:
Query<DocumentKeywords> query = ofy.query(DocumentKeywords.class);
for (String keyword : keywords) {
query = query.filter("keywords", keyword);
}
Set<Key<Document>> keys = query.<Document>fetchParentKeys();
Collection<Document> documents = ofy.get(keys).values();
DocumentKeywords
はその
Document
エンティティのすべてのキーワードのリストプロパティ(コレクション)が含まれ
、およびDocument
エンティティがDocumentKeywords
の親です。
答えがPythonを使用しないことを願っています! – onejigtwojig
誰でもJPAの実装を知っていますか? – onejigtwojig
JPAとJDOの他にJavaで利用可能な他のデータアクセスAPI、例えばObjectifyがあります。 – topchef