I think you want to revise the query to use inequality filters.

Something like:

q = pm.newQuery(Phrase.class);
q.setFilter("txt >= :1 && txt < :2");

List<Phrase> results = (List<Phrase>)
      q.execute(phrase.toLowerCase(), (phrase.toLowerCase() +
"\ufffd"));


On Jul 2, 4:03 pm, ksafez216 <[email protected]> wrote:
> Am I really not allowed to perform the following query?
>
> Query q = pm.newQuery("select from " + Phrase.class.getName() + "
> where match.startsWith(phrase.toLowerCase()) && sectionNum == 0");
> q.declareParameters("String match");
>
> Based on previous posts by Mr. Ross, the answer is no.  But I just
> wanted to confirm.
>
> If it's not possible, then what is the alternative?
>
> I was thinking about splitting "match" up into an array of words, but
> that seems like unnecessary processing power.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to