Advertisement
Guest User

Schema.xml

a guest
Mar 6th, 2012
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.02 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9.  
  10. http://www.apache.org/licenses/LICENSE-2.0
  11.  
  12. Unless required by applicable law or agreed to in writing, software
  13. distributed under the License is distributed on an "AS IS" BASIS,
  14. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. See the License for the specific language governing permissions and
  16. limitations under the License.
  17. -->
  18.  
  19. <!--
  20. This is the Solr schema file. This file should be named "schema.xml" and
  21. should be in the conf directory under the solr home
  22. (i.e. ./solr/conf/schema.xml by default)
  23. or located where the classloader for the Solr webapp can find it.
  24.  
  25. This example schema is the recommended starting point for users.
  26. It should be kept correct and concise, usable out-of-the-box.
  27.  
  28. For more information, on how to customize this file, please see
  29. http://wiki.apache.org/solr/SchemaXml
  30. -->
  31.  
  32. <schema name="example" version="1.1">
  33. <!-- attribute "name" is the name of this schema and is only used for display purposes.
  34. Applications should change this to reflect the nature of the search collection.
  35. version="1.1" is Solr's version number for the schema syntax and semantics. It should
  36. not normally be changed by applications.
  37. 1.0: multiValued attribute did not exist, all fields are multiValued by nature
  38. 1.1: multiValued attribute introduced, false by default -->
  39.  
  40. <types>
  41. <!-- field type definitions. The "name" attribute is
  42. just a label to be used by field definitions. The "class"
  43. attribute and any other attributes determine the real
  44. behavior of the fieldType.
  45. Class names starting with "solr" refer to java classes in the
  46. org.apache.solr.analysis package.
  47. -->
  48.  
  49. <!-- The StrField type is not analyzed, but indexed/stored verbatim.-->
  50. <fieldType name="string" class="solr.TextField" sortMissingLast="true" omitNorms="true">
  51. <analyzer>
  52. <tokenizer class="solr.StandardTokenizerFactory"/>
  53. </analyzer>
  54. </fieldType>
  55.  
  56. </types>
  57.  
  58.  
  59. <fields>
  60.  
  61. <field name="ACCESSES" type="string" indexed="true" stored="true"/>
  62. <field name="CLIENT" type="string" indexed="true" stored="true"/>
  63. <field name="DOMAIN" type="string" indexed="true" stored="true"/>
  64. <field name="D_TIME" type="string" indexed="true" stored="true"/>
  65. <field name="EVENTID" type="string" indexed="true" stored="true"/>
  66. <field name="E_TIME" type="string" indexed="true" stored="true"/>
  67. <field name="FACILITY" type="string" indexed="true" stored="true"/>
  68. <field name="GROUPNAME" type="string" indexed="true" stored="true"/>
  69. <field name="HOSTID" type="string" indexed="true" stored="true"/>
  70. <field name="HOSTNAME" type="string" indexed="true" stored="true"/>
  71. <field name="HOSTTYPE" type="string" indexed="true" stored="true"/>
  72. <field name="H_TIME" type="string" indexed="true" stored="true"/>
  73. <field name="IENAME" type="string" indexed="true" stored="true"/>
  74. <field name="LOGONTYPE" type="string" indexed="true" stored="true"/>
  75. <field name="MEMBERNAME" type="string" indexed="true" stored="true"/>
  76. <field name="MI_TIME" type="string" indexed="true" stored="true"/>
  77. <field name="MON_TIME" type="string" indexed="true" stored="true"/>
  78. <field name="MSGFIELD" type="string" indexed="true" stored="true"/>
  79. <field name="OBJECTNAME" type="string" indexed="true" stored="true"/>
  80. <field name="OBJECTTYPE" type="string" indexed="true" stored="true"/>
  81. <field name="PROCESSNAME" type="string" indexed="true" stored="true"/>
  82. <field name="REMOTEHOST" type="string" indexed="true" stored="true"/>
  83. <field name="SEVERITY" type="string" indexed="true" stored="true"/>
  84. <field name="SOURCE" type="string" indexed="true" stored="true"/>
  85. <field name="TARGETDOMAIN" type="string" indexed="true" stored="true"/>
  86. <field name="TARGETUSER" type="string" indexed="true" stored="true"/>
  87. <field name="TIME" type="string" indexed="true" stored="true"/>
  88. <field name="TYPE" type="string" indexed="true" stored="true"/>
  89. <field name="TYPEFACILITY" type="string" indexed="true" stored="true"/>
  90. <field name="TYPESEVERITY" type="string" indexed="true" stored="true"/>
  91. <field name="TYPERESOURCE" type="string" indexed="true" stored="true"/>
  92. <field name="USERNAME" type="string" indexed="true" stored="true"/>
  93. <field name="WMTIME" type="string" indexed="true" stored="true"/>
  94. </fields>
  95.  
  96. <!-- Field to use to determine and enforce document uniqueness.
  97. Unless this field is marked with required="false", it will be a required field
  98. -->
  99. <uniqueKey required="false" >WMTIME</uniqueKey>
  100.  
  101. <!-- field for the QueryParser to use when an explicit fieldname is absent -->
  102. <defaultSearchField>MSGFIELD</defaultSearchField>
  103.  
  104. <!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
  105. <solrQueryParser defaultOperator="OR"/>
  106.  
  107. <!-- copyField commands copy one field to another at the time a document
  108. is added to the index. It's used either to index the same field differently,
  109. or to add multiple fields to the same field for easier/faster searching. -->
  110.  
  111.  
  112. <!-- Similarity is the scoring routine for each document vs. a query.
  113. A custom similarity may be specified here, but the default is fine
  114. for most applications. -->
  115. <!-- <similarity class="org.apache.lucene.search.DefaultSimilarity"/> -->
  116. <!-- ... OR ...
  117. Specify a SimilarityFactory class name implementation
  118. allowing parameters to be used.
  119. -->
  120. <!--
  121. <similarity class="com.example.solr.CustomSimilarityFactory">
  122. <str name="paramkey">param value</str>
  123. </similarity>
  124. -->
  125.  
  126.  
  127. </schema>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement