Ticket #88 (new 需求) — at Version 2

Opened 14 years ago

Last modified 14 years ago

xindex 文件及指令格式说明(电脑网专用)

Reported by: chenchongqi Owned by:
Priority: major Milestone: 2012报价库5.0
Component: 报价库 Version: 报价库5.0
Keywords: xindex Cc:
Due Date:

Description (last modified by chenchongqi) (diff)

index文件

  • 文件名
    1. 历史产品:小类id-h.txt 如手机历史产品 20937-h.txt
    2. 非历史产品:小类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?
      1. m0:全国价
      2. m1:品牌
      3. m2-m7:自定义查询项item1-item6
    • ExtraField?
      1. e1:热度
      2. e2:创建时间
      3. e3:评分
      4. e4:北京分站价格
      5. e5:上海分站价格
      6. e6:广州分站价格
      7. e7:深圳分站价格
      8. 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 |
    --------+------------+-------+
    

Change History

comment:1 Changed 14 years ago by chenchongqi

  • Description modified (diff)

comment:2 Changed 14 years ago by chenchongqi

  • Description modified (diff)
Note: See TracTickets for help on using tickets.