nnguyen / google-enterprise-connector-manager

Automatically exported from code.google.com/p/google-enterprise-connector-manager
Apache License 2.0
2 stars 1 forks source link

No way to update just metadata (CM adds content even if my connector doesn't specify any) #229

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Accoding to the Feed documentation, you can update just the metadata for a 
record in the GSA by providing new metadata, but not proving google:content.

"When the feedtype element is set to incremental, the system modifies the URLs 
that exist in the new feed as specified by the action attribute for the record. 
URLs from previous feeds remain associated with the content data source. If the 
record contains metadata, you can incrementally update either the content or 
the metadata.

"For example, if your incremental feed specifies metadata for the record 
without any content information, the metadata will update but the content will 
remain unchanged; if your incremental feed only specifies content for the 
record, the content will update but the metadata will remain unchanged. You can 
only update metadata without content for records that had content in an earlier 
push.

But, (I think in response to Issue 8?), CM adds some dummy content if feed type 
is Incremental and no google:content property is specified.  See 
DocPusher.getAlternateContent().

The effect is that if my connector wants to just update the metadata (so I 
don't set the content), the CM adds dummy content, which ends up overwriting my 
good content in the GSA.

Original issue reported on code.google.com by chad...@gmail.com on 3 May 2011 at 4:05

GoogleCodeExporter commented 9 years ago
I haven't tested it, but that doc was recently updated to say that updating the 
metadata for a content feed does not work. There are conflicting internal 
reports about the behavior. I also remember seeing a report that a 
metadata-and-URL feed with metadata only does not work with googleconnector 
URLs, but I can't find it now.

But, yes, on top of all that, the automatic content feature and possibly even 
the added space workaround will prevent a connector from even trying to update 
only the metadata.

Original comment by jla...@google.com on 3 May 2011 at 5:04

GoogleCodeExporter commented 9 years ago
This issue is filed as Google issue #6514017

Original comment by tdnguyen@google.com on 18 May 2012 at 9:46