Changeset 6313


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

renamed languageName facet to _languageName (as it is not directly visible to user) and defined a query alias 'language'
refs #770

Location:
vlo/trunk
Files:
4 edited

Legend:

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

    r6312 r6313  
    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";
    1918    public static final String FIELD_TEMPORAL_COVERAGE = "temporalCoverage";
    2019    public static final String FIELD_GENRE = "genre";
     
    4847    public static final String FIELD_HAS_PART = "_hasPart";
    4948    public static final String FIELD_HAS_PART_COUNT = "_hasPartCount";
     49    public static final String FIELD_LANGUAGE_NAME = "_languageName";
    5050
    5151    /**
  • vlo/trunk/vlo-commons/src/main/resources/facetConcepts.xml

    r6312 r6313  
    211211                <blacklistPattern>/c:CMD/c:Components/c:MultimodalCorpus/c:DocumentationLanguages</blacklistPattern>
    212212                <!-- IMS c:MultimodalCorpus -->
    213                 <derivedFacet>languageName</derivedFacet>
     213                <derivedFacet>_languageName</derivedFacet>
    214214        </facetConcept>
    215215        <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-solr/src/main/solr_conf/solr/collection1/conf/schema.xml

    r6312 r6313  
    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" />
    424423   <field name="availability" type="string" indexed="true" stored="true" multiValued="true" />
    425424   <field name="license" type="string" indexed="true" stored="true" multiValued="true" />
     
    453452   <field name="_hasPartCount" type="int" indexed="true" stored="true" multiValued="false" />
    454453   <field name="_hierarchyWeight" type="int" indexed="true" stored="true" multiValued="false" default='0'/>
     454   <field name="_languageName" type="string" indexed="true" stored="false" multiValued="true" />
    455455   <field name="metadataSource" type="metadataSource" indexed="false" stored="true" multiValued="true" />
    456456   
  • vlo/trunk/vlo-solr/src/main/solr_conf/solr/collection1/conf/solrconfig.xml

    r6312 r6313  
    373373        <!-- Query fields -->
    374374        <str name="qf">
    375             <!-- TODO: Add _languagename field for search purposes? -->
    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
     375           text name^8 description^4 keywords^2 language^2 country^2 organisation^2 subject^2 collection^1 modality^1 genre^1 continent^.5 id^.1
     376        </str>
     377       
     378        <!-- alias: language = _languageName -->
     379        <str name="f.language.qf">
     380            _languageName
    377381        </str>
    378382       
Note: See TracChangeset for help on using the changeset viewer.