Skip to content

Zoie 添加document 到内存索引的时候api实现细节相关问题 #13

Open

Description

@kala-Chen

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

  1. happyguy1986 commented on Apr 14, 2017

    @happyguy1986

    这项目应该是黄了,你还想老外给你解答么。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions