Google App Engineã§å ¨ææ¤ç´¢
å®ã¯Google App Engineï¼ä»¥ä¸GAEï¼ã§å
¨ææ¤ç´¢ãè¡ããã¨æã£ã¦ã
ç¾ç¶APIã¯æä¾ããã¦ãã¾ããã
ã¾ããGoogleã®ã¢ããªã§æ¤ç´¢ãã§ããªããªãã¦
èãã¦ãããªãã£ãã®ã§ããªãé©ãã¾ããã
ã¨ããã¤ã¤ãããç¨åº¦å¯¾å¿ã¯å¯è½ã§ãã
ã»åæ¹ä¸è´æ¤ç´¢
以ä¸ã®ããã«ç¯å²æ¤ç´¢ãå©ç¨ãã¦ã¦ãã³ã¼ãã
æ¬ä¼¼çã«åæ¹ä¸è´æ¤ç´¢ãããã¨ãã§ãã¾ãã
db.GqlQuery('SELECT * FROM Test WHERE w >= :1 and w < :2', word, word + u'\uFFFD')
ã»å
¨ææ¤ç´¢ï¼éå
¬éãè±èªã®ã¿ï¼
éå
¬éã§ã¯ããã¾ãããå
¨ææ¤ç´¢ãè¡ãSearchableModelã¨ãã
ã¯ã©ã¹ãæä¾ããã¦ãã¾ãã
使ç¨æ¹æ³ã¯ã¢ãã«ãç¶æ¿ããdb.Modelãsearch.SearchableModel
ã«å¤æ´ããæ¤ç´¢æã«
Test.all().search(search_word)
ã¨æå®ãããã¨ã§å
¨ææ¤ç´¢ãå¯è½ã§ãã
ãã ãã¤ã³ããã¯ã¹åãã¹ãã¼ã¹åºåãã«ãªãããã
æ¥æ¬èªã¯ãã¾ãæ¤ç´¢ã§ãã¾ããã
ï¼ããã対å¿ãããããï¼
ä»å使ããã¨æã£ã¦ããç®çãåæ¹ä¸è´ã ã£ãã®ã§
äºãªããå¾ã¾ããããé¨åä¸è´æ¤ç´¢ãã§ããªãã®ã¯
çµæ§ã¤ããã
æ©ããæ¥æ¬èªãå ¨ææ¤ç´¢å¯è½ãªAPIãå ¬éãã¦ã»ãããã®ã§ãã