[ 
http://opencast.jira.com/browse/MH-7415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=26067#comment-26067
 ] 

Christoph E. Driessen commented on MH-7415:
-------------------------------------------

Sometimes the current code prefers a value set on the mediapackage over a value 
in the DublinCore document. 
See 
org.opencastproject.search.impl.solr.SolrIndexManager#addStandardDublincCoreFields
 for the following example:

solrInput.addField(SolrFields.DC_TITLE, getValue(flavor, 
dc.getFirst(DublinCore.PROPERTY_TITLE), mediaPackage.getTitle())); 

Two questions arise: 
1) which language should be assumed for the mediapackage's value? 
2) should the DublinCore value still be discarded or should it be written to 
the index also, since we are now able to handle multiple values? 

I'd recommend to: 
1) assume that the language is undefined, which is meant to be the "original" 
language of the mediapackage. This concept also exists for DublinCore metadata. 
See DublinCore#LANGUAGE_UNDEFINED
2) take both values into the index

> Add support for multiple field values in search index
> -----------------------------------------------------
>
>                 Key: MH-7415
>                 URL: http://opencast.jira.com/browse/MH-7415
>             Project: Matterhorn Project
>          Issue Type: Task
>          Components: Architecture & Services
>    Affects Versions: 1.1 
>            Reporter: Tobias Wunden
>            Assignee: Christoph E. Driessen
>             Fix For: 1.2
>
>
> Right now, only the first value of multiple possible values of dublin core 
> documents make it into the search index. This needs to be fixed by adding all 
> available field values, eventually by turning the respective fields either 
> into indexed fields (title_en, title_de) or multivalue fields (or both).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
Matterhorn mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn


To unsubscribe please email
[email protected]
_______________________________________________

Reply via email to