https://wiki.collex.org/index.php?title=NotesForExhibitBuilder&feed=atom&action=historyNotesForExhibitBuilder - Revision history2024-03-29T01:53:51ZRevision history for this page on the wikiMediaWiki 1.32.3https://wiki.collex.org/index.php?title=NotesForExhibitBuilder&diff=28&oldid=prevDw6h: New page: == URI == What should the URI be for a published exhibit? Currently, URIs are the unique identifiers for each object in the index. * a random UUID--was the consensus by Erik, Beth and Jami...2008-09-09T20:03:40Z<p>New page: == URI == What should the URI be for a published exhibit? Currently, URIs are the unique identifiers for each object in the index. * a random UUID--was the consensus by Erik, Beth and Jami...</p>
<p><b>New page</b></p><div>== URI ==<br />
What should the URI be for a published exhibit? Currently, URIs are the unique identifiers for each object in the index.<br />
* a random UUID--was the consensus by Erik, Beth and Jamie and is now implemented<br />
<br />
== What to Index? ==<br />
* uri<br />
* url<br />
* archive--"nines"?<br />
* author (role_aut)<br />
* exhibit type<br />
* status: published or shared<br />
* license<br />
* genres<br />
* fulltext of exhibit content (not the contained objects)<br />
* displayed metadata from the contained objects<br />
* index manually for shared<br />
* index on publish<br />
* freeculter = false?<br />
<br />
== Indexing an Exhibit ==<br />
The exhibit needs to know its own URI when it's indexed. This is so that if the exhibit is modified, it can update itself in the Solr index without creating a new entry. If the URI is blank then create a new Solr document and new URI, otherwise update the exisitng Solr document at that URI.<br />
<br />
If an exhibit is already indexed and then updated, should it auto-update its index, or should this be a manual process? I'll implement manual first.<br />
<br />
== Modifying an Indexed Document ==<br />
Currently, Collex uses a modified version of Solr that allows indexed documents (collex objects) to be ''modified'' in place. Syntax is:<br />
<br />
req = Solr::Request::ModifyDocument.new(<br />
:uri => uri,<br />
:overwrite => {"#{username}_annotation" => annotation,<br />
"#{username}_tag" => tags,<br />
},<br />
:distinct => {:username => username})<br />
@solr.send(req) <br />
<br />
The five modes are:<br />
# append<br />
# delete<br />
# distinct (like append, but values must be distinct)<br />
# increment (for numbers only)<br />
# overwrite</div>Dw6h