当前位置: 首页 > 工具软件 > Lucandra.NET > 使用案例 >

Lucandra的数据结构

程沛
2023-12-01

Lucandra在storage-conf文件中的设置为:

 

 

<Keyspace Name="Lucandra">
    <ColumnFamily Name="TermInfo"
        CompareWith="BytesType"
        ColumnType="Super"
        CompareSubcolumnsWith="BytesType"
        KeysCached="10%" />
    <ColumnFamily Name="Documents"
        CompareWith="BytesType"
        KeysCached="10%" />
</Keyspace>

 

可以看到有TermInfo和Documents两个ColumnFamily。

其中TermInfo存储了Lucandra逆向索引的信息。是一个SuperColumnFamily。

 

RowKey:index_name/field/term
SuperColumn.name:documentId
Column.name:"position"
Column.value:position vector

 

 Documents存储了Document数据。是一个ColumnFamily。

 

RowKey:index_name/documentId
Column.name:field name
Column.value:value
 

 

 

 类似资料: