I followed the instructions at:
http://googlecode.blogspot.com/2010/05/google-app-engine-basic-text-search.html
but search is only working for exact matches in the column, not partial
strings. Here is my code:
String querystring = request.getParameter("querystring");
querystring = ( querystring != null ? querystring.toLowerCase() : ""
).trim();
PersistenceManager pm = PMF.get().getPersistenceManager();
Query q = pm.newQuery(Item.class);
q.setFilter("shortDesc >= :1 && shortDesc < :2");
List<Item> items = (List<Item>) q.execute(querystring, (querystring +
"\ufffd"));
What am I missing?
--
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.