原创 Lucene 基礎

一、需求分析 1.1、數據分類     結構化數據和非結構化數據     結構化數據:指具有固定格式或有限長度的數據,如數據庫、元數據等。     非結構化數據:指不定長或無固定格式的數據,如郵件、word文檔等磁盤上文件。 1.2、非結

原创 kafka api

一、producer api 1、消息發送流程     kafka的producer發送消息採用的是異步發送的方式。在消息發送的過程中,涉及到了兩個線程——main線程和sender線程,以及一個線程共享變量——RecordAccumul

原创 Lucene CRUD

lucene官網:http://lucene.apache.org/ 引入maven: <dependency> <groupId>org.apache.lucene</groupId> <artifactId>luce

原创 kafka 深入

一、數據日誌   進入到日誌目錄裏面有__consumer_offsets_*的文件夾,指的是有一個__consumer_offsets的topic,有50個分區在不同的broker數據目錄中,裏面有topic_0文件夾有00000000

原创 managed-schema文件

域: <field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false" /> indexed: 索引 store