zoukankan      html  css  js  c++  java
  • lucene基本原理

    1.术语

    lucene 在存储它的全文索引结构时,是有层次结构的,这涉及到5个层次:索引(Index);段(Segment);文档(Document);域(Field);词(Term),他们的关系如下图所示:(lucene 索引存储结构概念图)

    下图是Lucene生成的索引的一个实例,右边是对这5个层次的描述:

    2.基本原理

    2.1 lucene架构

    2.2 创建索引

     IndexWriter W = new IndexWriter(FSDirectory.open(indexdir),

    new  StandardAnalyzer(version.LUCENE_30,IndexWriter.MaxFieldLength.UNLIMITED));

    2.3 查询索引

    3.参考资料

    【1】https://blog.csdn.net/ghj1976/article/details/5586329

    【2】https://sebol.webs.com/architectureoverview.htm

    【3】https://sebol.webs.com/creatingaluceneindex.htm

    【4】https://sebol.webs.com/searchingtheindex.htm

  • 相关阅读:
    2013年 积木大赛
    Matlab 画图2
    Matlab 画图1
    Matlab 数值计算
    Matlab 条件循环函数
    Non Super Boring Substring 题解(hash+思维)
    Matlab 数组
    Matlab 矩阵
    L
    hdu 1671Phone List
  • 原文地址:https://www.cnblogs.com/davidwang456/p/9933512.html
Copyright © 2011-2022 走看看