开始

开始

方法四

DirectoryReader openIfChanged(DirectoryReader oldReader, IndexWriter writer, boolean applyAllDeletes)

方法三

DirectoryReader openIfChanged(DirectoryReader oldReader, IndexWriter writer)

是否IndexWriter相等

并且作用删除信息?

u179_seg0 u179_seg1 u179_seg2 u179_seg3
u180_seg0 u180_seg1 u180_seg2 u180_seg3

根据IndexWriter判断

索引是否发生变化?

u182_seg0 u182_seg1 u182_seg2

根据IndexWriter获取新的

StandardDirectoryReader

新旧

StandardDirectoryReader

是否一致?

返回新的

StandardDirectoryReader

u186_seg0 u186_seg1
u187_seg0 u187_seg1

u189_seg0 u189_seg1

根据IndexWriter获取新的

StandardDirectoryReader

u191_seg0 u191_seg1 u191_seg2

结束

返回新的

StandardDirectoryReader

u194_seg0 u194_seg1
u195_seg0 u195_seg1 u195_seg2 u195_seg3

返回null

u197_seg0 u197_seg1 u197_seg2
u198_seg0 u198_seg1 u198_seg2 u198_seg3
u199_seg0 u199_seg1
u200_seg0 u200_seg1 u200_seg2