Using the java api to add entries any float attribute with a negative
value does not get indexed, the attribute will appear in the items
feed and but not in the snippets feed. Attributes with positive float
values work fine.
<code>
while(iter.hasNext()){
Item item = (Item)iter.next();
GoogleBaseEntry entry = new GoogleBaseEntry();
// bunch of other attrs added before these, code ommitted....
entry.getGoogleBaseAttributes().addFloatAttribute
("west_longitude", item.west);
entry.getGoogleBaseAttributes().addFloatAttribute
("south_latitude", item.south);
IEntry iEntry = service.insert
(FeedURLFactory.getDefault().getItemsFeedURL(), entry);
}
</code>
In this case, for example, the the west_longitude (whose values are
all negative) attribute does not appear in the snippets feed but the
south_latitude attribute (whose values are all positive) does appear.
I've tried other test attributes with different names with the same
results. That is, float attributes whose values negative never appear
in the snippets feed.
Surely this can't be because a negative number is not considered human
readable, can it?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Base Data API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Base-data-API?hl=en
-~----------~----~----~----~------~----~------~--~---