id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	due_date
88	xindex 文件及指令格式说明(电脑网专用)	chenchongqi		"= index文件 =
* 文件名
 a. 历史产品：小类id-h.txt 如手机历史产品 20937-h.txt
 b. 非历史产品：小类id.txt 如手机非历史产品 20937.txt

* 文件格式
{{{
Record struct match Query

--------+---+-------------------+-----------+
Field   |ID | IndexField        | ExtraField|
        |   | 0   1   2   3   4 | 0   1   2 |
--------+---+---+---+---+---+---+---+---+---+
Record  | x | x | x | x | x | x | x | x | x |
        | x | x | x | x | x | x | x | x | x |
        | x | x | x | x | x | x | x | x | x |
        | x | x | x | x | x | x | x | x | x |
        | x | x | x | x | x | x | x | x | x |
        | x | x | x | x | x | x | x | x | x |
--------+---+---+---+---+---+---+---+---+---+
Query   |   | m0| m1| m2| m3| m4|   |   |   | match
        +---+---+---+---+---+---+---+---+---+
        |   |   |   |   |   |   | 0 | 1 | 2 | sort_index
        +---+---+---+---+---+---+---+---+---+
        |   | x |   |   |   |   |   |   |   | sort_price
--------+---+---+---+---+---+---+---+---+---+
}}}
 * IndexField
  a. m0:全国价
  b. m1:品牌
  c. m2-m7:自定义查询项item1-item6
 * ExtraField
  a. e1:热度
  b. e2:创建时间
  c. e3:评分
  d. e4:北京分站价格
  e. e5:上海分站价格
  f. e6:广州分站价格
  g. e7:深圳分站价格
  h. e8:成都分站价格

= price文件 =
* 文件名 price.txt
* 文件格式
{{{
北上广深成都价格在ExtraField中的位置
@first_area:
---------+----+----+----+----+----+----+
Area ID  | a0 | a1 | a2 | a3 | a4 | a5 |
---------+----+----+----+----+----+----+
Field ID | m0 | e4 | e5 | e6 | e7 | e8 |
---------+----+----+----+----+----+----+
a0 全国地区id
a1-a5 北上广深地区id

分站对应关系
@second_area:
--------------+----+----+----+----+----+----+
Minor Area ID | n1 | n2 | n3 | n4 | n5 | n6 | ... 
--------------+----+----+----+----+----+----+
Main Area ID  | a1 | a1 | a1 | a2 | a2 | a3 | ...
--------------+----+----+----+----+----+----+
n1-nx 除了北上广深成都全国外其他各小分站地区id
a1-a5 被引用的主要分站地区id

分站本地价格
@second_area_price:
--------+------------+-------+
Area Id | Product Id | Price |
--------+------------+-------+
}}}"	需求	new	major	2012报价库5.0	报价库	报价库5.0		xindex		
