title: Google App Engine, Java Datastore Query : How to do SQL Like Statement?
body: <p>I have entity:</p>
  
  <pre><code>Entity e = new Entity("Item");
  e.setProperty("Description", Description);
  </code></pre>
  
  <p>And I am trying to perform a keyword search. 
  Ex, If i have "abc", "eabcd" and "abc block", when I perform the search "abc", it should return all three.</p>
  
  <p>If I am using SQL, I would say something like this:</p>
  
  <pre><code>Select * from Item where Description like "%"+keyword+"%"
  </code></pre>
  
  <p>I know I can do this, but this will only return "abc".</p>
  
  <pre><code>public static Iterable&lt;Entity&gt; SearchItems(String Description) {
      DatastoreService ds = DatastoreServiceFactory.getDatastoreService();
      Query q = new Query("Item").addFilter("Description",
              FilterOperator.EQUAL, Description);
      return ds.prepare(q).asIterable();
  }
  </code></pre>
  
  <p>What should I do?</p>
  
  <p>P.S. I have seen this but this is not particularly helpful. <a href="https://stackoverflow.com/questions/2340649/google-app-engine-and-sql-like">Google App Engine and SQL LIKE</a></p>