hi ~ 各位, 最近在看zoie的一些源码的时候, 有个关于添加document到内存索引的时候, 构造UIDFilter并显示调用writer.deleteDocuments(new ConstantScoreQuery(uidFilter)); 这个api有些不太明白, 为啥不是直接调用lucene 的 update 的api, 而是先delete---commit ----add---commit呢 ?求大神指点 .... Solr 是先查出业务id对应的docId, 构造updateDocument(Term term, Iterable<? extends IndexableField> doc)中的term实现对业务唯一性的保证. 请问Zoie 使用显示删除并commit, 然后在调用add api这样的做法是否是和自己扩展实现了ZoieSegmentReader或者ZoieMultiReader有关呢 ?
Activity
happyguy1986 commentedon Apr 14, 2017
这项目应该是黄了,你还想老外给你解答么。。。