requête GQL à condition multiple sur un champ Liste
-
28-09-2019 - |
Question
Je veux obtenir l'objet, qui contient ListField 'foo', 'bar' et 'chaînes de foobar'. Puis-je faire requête comme ceci
SELECT * FROM Entity WHERE listfield = 'foo' AND listfield = 'bar' AND listfiled = 'foobar'
où ListField = StringListProperty ()?
La solution
Une chose à noter, assurez-vous que votre fichier index.yaml contient toutes les permutations d'index dont vous avez besoin. Votre requête comme ci-dessus aurait un indice comme celui-ci:
- type: Entité
Propriétés:
- nom: xyz
- nom: ListField
- nom: ListField
- nom: ListField
Autres conseils
Oui, vous pouvez le faire.
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow