Is TOKENIZED_PREFIX supported in Appengine search?

67 views
Skip to first unread message

Anand Srinivasan

unread,
Apr 4, 2017, 8:14:39 AM4/4/17
to Google App Engine
While looking through the java docs for Field in Document Index (https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/search/Field), we noticed the presence of the "TOKENIZED_PREFIX" type which seems to match closely with the search capability that we want. Unfortunately, when we try to index a field with that type, we are running into an "Unsupported field type" error. Is the documentation incorrect? Or am I using this incorrectly? The indexing code does something like the following.
        doc.addField(Field.newBuilder().setName(key).setTokenizedPrefix(valueStr));
The exception occurs at the line index.put(doc.build());

Unfortunately, our tests are running fine and as expected. The indexing succeeds in the test and the query also works as expected. But we are seeing this exception when the code is deployed to appengine.

Any help to resolve this is greatly appreciated.

Thanks!

Adam (Cloud Platform Support)

unread,
Apr 4, 2017, 5:53:58 PM4/4/17
to Google App Engine
It looks like this is an issue specifically affecting the Java runtime. I'd recommend reporting this on the issue tracker so we can link it to the internal issue and provide updates. Other users may star the issue to receive updates as well and increase visibility.

Anand Srinivasan

unread,
Apr 4, 2017, 11:14:25 PM4/4/17
to Google App Engine
Thanks, Adam. Here's the link to the issue that I created: https://issuetracker.google.com/issues/36916692.
Reply all
Reply to author
Forward
0 new messages