Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kala-Chen opened this issue Aug 2, 2014 · 1 comment

Comments

@kala-Chen
Copy link

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有关呢 ?

@happyguy1986
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants