Project

General

Profile

« Previous | Next » 

Revision 8294

Added by Jing Tao almost 11 years ago

Use the schema for the d1_cn_index_processor 1.2.0

View differences:

metacat-common/src/test/java/edu/ucsb/nceas/metacat/common/query/SolrQueryServiceControllerTest.java
50 50
    public void testGetValidSchemaFields() throws Exception {
51 51
       List<String> fields = SolrQueryServiceController.getInstance().getValidSchemaFields();
52 52
       assertTrue(fields != null);
53
       assertTrue("The number of valid schema fields should be 76 rather than "+fields.size(), fields.size() ==76);
53
       assertTrue("The number of valid schema fields should be 85 rather than "+fields.size(), fields.size() ==85);
54 54
    }
55 55
    
56 56
    /**
......
65 65
    public void testgetIndexSchemaFields() throws Exception {
66 66
       Map<String, SchemaField> fields = SolrQueryServiceController.getInstance().getIndexSchemaFields();
67 67
       assertTrue(fields != null);
68
       assertTrue("The number of index schema fields should be 93 rather than "+fields.size(), fields.size() == 93);
68
       assertTrue("The number of index schema fields should be 102 rather than "+fields.size(), fields.size() == 102);
69 69
    }
70 70
    
71 71
    /**
metacat-common/pom.xml
9 9
	<url>http://maven.apache.org</url>
10 10
	<properties>
11 11
        <d1_solr_index_schema_name>index-solr-schema-v1_1.xml</d1_solr_index_schema_name>
12
        <d1_solr_index_schema_url>scm:svn:https://repository.dataone.org/software/cicore/tags/DATAONE-CN-INDEX_v1.1.1/usr/share/dataone-cn-index</d1_solr_index_schema_url>         
12
        <d1_solr_index_schema_url>scm:svn:https://repository.dataone.org/software/cicore/tags/DATAONE-CN-INDEX_v1.2.0/usr/share/dataone-cn-index</d1_solr_index_schema_url>         
13 13
    </properties>
14 14
	<repositories>
15 15
        <repository>

Also available in: Unified diff