答复: 答复: How to get the docs id after commit

2015-05-11 Thread 李文
9:47 收件人: solr-user@lucene.apache.org 主题: Re: 答复: How to get the docs id after commit Not something really built into Solr. It's easy enough, at least conceptually, to build in a "batch_id". The idea here would be that every doc in each batch would have a unique id (really, someth

Re: 答复: How to get the docs id after commit

2015-05-10 Thread Erick Erickson
d to get ids > of these docs to trigger another server to do something. > > -邮件原件- > 发件人: Erick Erickson [mailto:erickerick...@gmail.com] > 发送时间: 2015年5月10日 23:22 > 收件人: solr-user@lucene.apache.org > 主题: Re: How to get the docs id after commit > > Not really. It's

答复: How to get the docs id after commit

2015-05-10 Thread 李文
Sorry. The "newest" means all the docs that last committed, I need to get ids of these docs to trigger another server to do something. -邮件原件- 发件人: Erick Erickson [mailto:erickerick...@gmail.com] 发送时间: 2015年5月10日 23:22 收件人: solr-user@lucene.apache.org 主题: Re: How to get the doc

Re: How to get the docs id after commit

2015-05-10 Thread Erick Erickson
Not really. It's an ambiguous thing though, what's a "newest" document when a whole batch is committed at once? And in distributed mode, you can fire docs to any node in the cloud and they'll get to the right shard, but order is not guaranteed so "newest" is a fuzzy concept. I'd put a counter in m

How to get the docs id after commit

2015-05-10 Thread 李文
Hi, Solr Developers I want to get the newest commited docs in the postcommit event, then nofity the other server which data can be used, but I can not find any way to get the newest docs after commited, so is there any way to do this? Thank you. Wen Li

Re: How to get the docs id after commit

2015-05-08 Thread Erick Erickson
Not that I know of. "newest doc id" is pretty ambiguous. If I transmit a batch of 100 docs then commit, they're all committed at once. Which one, then, is "newest"? And consider what happens if (in SolrCloud) mode, I send updates to two separate nodes. The docs are forwarded to the leader for the s

How to get the docs id after commit

2015-05-08 Thread 李文
Hi, Solr Developers I want to get the newest commited docs in the postcommit event, then nofity the other server which data can be used, but I can not find any way to get the newest docs after commited, so is there any way to do this? Thank you. Wen Li