asolfre / objectify-appengine

Automatically exported from code.google.com/p/objectify-appengine
MIT License
0 stars 0 forks source link

Auto @Unindex fields that are not indexable #193

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Some fields like blob and text can never be indexed. Ignore any @index 
annotations on the field as well as any @Index annotations on the class.

Original issue reported on code.google.com by aleem.ma...@gmail.com on 2 Mar 2014 at 1:22

GoogleCodeExporter commented 9 years ago
What is the symptom of this issue? The SDK just ignores the index request. If 
there was a problem with some sort of embedding situation, it's probably 
resolved now.

Original comment by lhori...@gmail.com on 14 Apr 2014 at 2:42

GoogleCodeExporter commented 9 years ago
Objectify throws an exception if you try to index a field that is not 
indexable. 

This may be a separate issue, but if you have a String that is marked as @Index 
and the String is >500 characters it gets automatically converted to a Text 
field but then an exception is thrown saying its not indexable.

I think the default behaviour should just not index the field.

Original comment by aleem.ma...@gmail.com on 14 Apr 2014 at 2:48

GoogleCodeExporter commented 9 years ago
This has been corrected, at least by v5. Right now if you get an autoconvert 
String->Text with an index, Objectify logs a warning. But otherwise requests to 
index the unindexable are fine.

Original comment by lhori...@gmail.com on 14 Apr 2014 at 3:09