Hi Alessandro,
On 02/03/2012 01:45 PM, Alessandro Adamou wrote:
Hi Anil,
I have another question concerning the ContentHub store.
When creating a content item you can set the title and other custom
fields called constraints.
Are these only used as query fields for Solr searches, or is there a
way to store them semantically i.e. triples in the MGraph obtained
from ContentItem#getMetadata() (which I can see that contains
enhancements)?
Yes, they are saved as "fields" of the content item while storing in
Solr (hence only used as query fields). There is no mapping between
these constraints and the enhancements of the content item.
I think it would be great if there could be a default list of
selectable constraints that in turn map to well-known properties, e.g.
title as dc:title, and dc:source if the content was retrieved from a
URI etc.
This is a good idea. I am adding this to my todo list. Thank you..
Best,
Alessandro
Best,
Anil.
On 2/2/12 12:31 PM, Ali Anil Sinaci wrote:
Hi Alessandro,
On 02/02/2012 01:21 PM, Alessandro Adamou wrote:
Hi Anil, Suat,
How can I query the Content Hub via Java API to get the set of
stored content items (or their id's?). The Store interface read
method seems to assume I already know the id of a document I want to
get.
Currently, there is no such method to retrieve all stored documents
or their IDs. Maybe we can provide such a method.
Should I query the SolrSearch with a wildcard query perhaps?
Yes, a wildcard query (e.g. "*:*") will meet your needs I think.
Thanks!
Alessandro
Best,
Anil.