Full-text search using Google App Engine and JDO?

I am using Google App Engine (Java) with JDO. How can I do the equivalent of JDO

select * from table where field like '%foo%'

The only recommendation I've seen so far is to use Lucene. I am a little surprised that some of this basic is not possible in the finished GAE.

+4
source share
2 answers

App Engine. , App Engine , . , "". , , , - , .

, , , Lucene. Lucene on App Engine, GAELucene. , .

+6

tl; dr: .

: , - , :

  • searchTerms. , .

  • , , . . , . . , . , .

  • , ( ) equals searchTerms.

    ( = , - .)

    ( Objectify):

    Query query = dao.ofy().query(Recipe.class);
    for (String term : search.toLowerCase().split(" ")) {
      query = query.filter("searchTerms =", term);
    }
    
+1

All Articles