Solr's generic XML structured data representation

Solr has its own generic XML representation of typed and named data structures. This XML is used for most of the response XML, and it is also used in parts of solconfig.xml. The XML elements involved in this partial XML schema are as follows:

  • <lst>: This is a named list. Each of its child nodes should have a name attribute. The <doc> element is in effect equivalent to lst but is used only for result documents.
  • <arr>: This is an array of values. Each of its child nodes is a member of this array.

The following elements represent simple values with the text of the element storing the value. The numeric ranges match that of the Java language. They will have a name attribute if they are underneath lst (or doc), but not otherwise.

  • <str>: A string of text
  • <int>: An integer in the range -2^31 to 2^31-1
  • <long>: An integer in the range -2^63 to 2^63-1
  • <float>: A floating point number in the range 1.4e–45 to about 3.4e38
  • <double>: A floating point number in the range 4.9e–324 to about 1.8e308
  • <bool>: A Boolean value represented as true or false; when supplying values in a configuration file: on, off, yes, and no are also supported
  • <date>: A date in the ISO-8601 format such as: 1965-11-30T05:00:00Z; times are always in the UTC time zone represented by Z
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset