Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change 
notification.

The following page has been changed by HossMan:
http://wiki.apache.org/solr/SchemaXml

------------------------------------------------------------------------------
- = Solr schema.xml =
  
- The schema.xml file contains the details about which fields the documents can 
contain, and what datatypes those fields have.  In addition to basic datatypes 
like strings, integers, and dates, text fields can support Analyzers with 
highly configurable [:AnalyzersTokenizersTokenFilters:Tokenizers and Token 
Filters].
+ The schema.xml file contains all of the details about which fields your 
documents can contain, and how those fields should be dealt with when adding 
documents to the index, or when querying those fields.
  
- A 
[http://svn.apache.org/repos/asf/incubator/solr/trunk/example/solrconf/schema.xml
 sample Solr schema.xml with comments] can be found in the Source Repository.
+ A 
[http://svn.apache.org/repos/asf/incubator/solr/trunk/example/solrconf/schema.xml
 sample Solr schema.xml with detailed comments] can be found in the Source 
Repository.
  
- /!\ :TODO: /!\ find the dtd file
+ /!\ :TODO: /!\ we should try to make a DTD for the schema
  
- == Main Sections ==
+ [[TableOfContents]]
  
- A schema.xml file consists of up to 5 sections: (1) datatypes to be used by 
the (2) fields of your schema, the names of the (3) unique key field and the 
(4) default search field, and any (5) copy fields. 
+ == Data Types` ==
  
- === Data Types ===
+ The `<types>` section allows you define a list of `<fieldtype>` you wish to 
use in your schema, along with the underlying Solr class that should be used 
for that type, as well as the default options you want for fields that use that 
type.
  
- The <types> section allows you to name the specific Solr classes that will be 
used in your schema, and allows you to add any analyzers.
+ Any subclass of 
[http://incubator.apache.org/solr/docs/api/org/apache/solr/schema/FieldType.html
 FieldType] may be used as a field type class.  for some common numeric types 
(integer, float, etc...) there are multiple implimentations provided depending 
on your needs.
  
- A simple example:
+   Common options that field types can have are...
  
-    <fieldtype name="string" class="solr.StrField"/>
+    * `sortMissingLast=true|false`
+    * `sortMissingFirst=true|false`
+    * `indexed=true|false`
+    * `stored=true|false`
+    * `multiValued=true|false`
+    * `omitNorms=true|false`
+ 
+ `TextField`s can also support Analyzers with highly configurable 
[:AnalyzersTokenizersTokenFilters:Tokenizers and Token Filters].
  
  
- === Fields ===
+ == Fields ==
+ == Misc ==
  === The Unique Key Field ===
  === The Default Search Field ===
  === Copy Fields ===

Reply via email to