Changeset 6312


Ignore:
Timestamp:
06/19/15 14:26:17 (9 years ago)
Author:
Twan Goosen
Message:

added derived facet languageName (from languageCode, processed by new language name postprocessor)
fixes #770

Location:
vlo/trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • vlo/trunk/vlo-commons/src/main/java/eu/clarin/cmdi/vlo/FacetConstants.java

    r6288 r6312  
    1616    public static final String FIELD_LICENSE = "license";
    1717    public static final String FIELD_LANGUAGE_CODE = "languageCode";
     18    public static final String FIELD_LANGUAGE_NAME = "languageName";
    1819    public static final String FIELD_TEMPORAL_COVERAGE = "temporalCoverage";
    1920    public static final String FIELD_GENRE = "genre";
  • vlo/trunk/vlo-commons/src/main/resources/facetConcepts.xml

    r6165 r6312  
    211211                <blacklistPattern>/c:CMD/c:Components/c:MultimodalCorpus/c:DocumentationLanguages</blacklistPattern>
    212212                <!-- IMS c:MultimodalCorpus -->
     213                <derivedFacet>languageName</derivedFacet>
    213214        </facetConcept>
    214215        <facetConcept name="availability" description="The usage conditions for the resource or tool" definition="A rough description of the conditions under which the resource or tool can be used.">
  • vlo/trunk/vlo-importer/src/main/java/eu/clarin/cmdi/vlo/importer/MetadataImporter.java

    r6287 r6312  
    7979        POST_PROCESSORS.put(FacetConstants.FIELD_COUNTRY, new CountryNamePostProcessor());
    8080        POST_PROCESSORS.put(FacetConstants.FIELD_LANGUAGE_CODE, new LanguageCodePostProcessor());
     81        POST_PROCESSORS.put(FacetConstants.FIELD_LANGUAGE_NAME, new LanguageNamePostProcessor());
    8182        POST_PROCESSORS.put(FacetConstants.FIELD_AVAILABILITY, new AvailabilityPostProcessor());
    8283        POST_PROCESSORS.put(FacetConstants.FIELD_ORGANISATION, new OrganisationPostProcessor());
  • vlo/trunk/vlo-solr/src/main/solr_conf/solr/collection1/conf/schema.xml

    r6287 r6312  
    421421   <field name="country" type="string" indexed="true" stored="true" multiValued="true"/>
    422422   <field name="languageCode" type="string" indexed="true" stored="true" multiValued="true" />
     423   <field name="languageName" type="string" indexed="true" stored="false" multiValued="true" />
    423424   <field name="availability" type="string" indexed="true" stored="true" multiValued="true" />
    424425   <field name="license" type="string" indexed="true" stored="true" multiValued="true" />
  • vlo/trunk/vlo-solr/src/main/solr_conf/solr/collection1/conf/solrconfig.xml

    r6301 r6312  
    374374        <str name="qf">
    375375            <!-- TODO: Add _languagename field for search purposes? -->
    376            text name^8 description^4 keywords^2 languageCode^2 country^2 organisation^2 subject^2 collection^1 modality^1 genre^1 continent^.5 id^.1
     376           text name^8 description^4 keywords^2 languageName^2 country^2 organisation^2 subject^2 collection^1 modality^1 genre^1 continent^.5 id^.1
    377377        </str>
    378378       
Note: See TracChangeset for help on using the changeset viewer.