JsonPreAnalyzedParser format

This is the default serialization format used by PreAnalyzedField type. It uses a top-level JSON map with the following keys:

Any other top-level key is silently ignored.

Token stream serialization

Token stream is expressed as a JSON list of JSON maps. Each map consists of the following keys and values:

Example

{
 "v":"1",
 "str":"test ąćęłńóśźż",
 "tokens":[
  {
   "e":128,
   "i":22,
   "p":"DQ4KDQsODg8=",
   "s":123,
   "t":"one",
   "y":"word"
  },
  {
   "e":8,
   "i":1,
   "s":5,
   "t":"two",
   "y":"word"
  },
  {
   "e":22,
   "i":1,
   "s":20,
   "t":"three",
   "y":"foobar"
  }
 ]
}

JsonPreAnalyzedParser (last edited 2012-05-11 20:04:29 by AndrzejBialecki)