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!