5

I currently have a Java application running on Google App Engine, but I want to add the features that the Python module's SearchableModel provides (for search features of course). Is it possible to run python code in the same project as Java code, just under a different version? If not, could they be two separate apps (current Java app and a new Python-based search app) running against a single datastore, but I don't think that is possible.

Jake
  • 203
  • 4
  • 10

2 Answers2

9

It is possible to run Python and Java applications on different versions.

From:

Last but not least: remember that you can have different version of your app (using the same datastore) some of which are implemented with the Python runtime, some with the Java runtime, and you can access versions that differ from the "default/active" one with explicit URLs.

Community
  • 1
  • 1
hleinone
  • 4,470
  • 4
  • 35
  • 49
3

Yes, you can write your app in Java and also have a separate version of your app running Python.

However, if the core of your app is already implemented in Java, you might want to look at the SearchableModel Python code, then consider implementing something to accomplish your goal in Java. The gist is that you could simply build your list of search-words and store them in a multivalued property (ie a list).

You should also check out the Building Scalable, Complex Apps on App Engine video. Depending on your use-case, moving the search-word list to an 'Index Relation Entity' might offer further improvements.

Robert Kluin
  • 8,282
  • 25
  • 21
  • Example of Index Relation Entity in Python: http://novyden.blogspot.com/2011/09/efficient-keyword-search-with-relation.html – topchef Sep 23 '11 at 20:06