Well, it depends on what you're trying to accomplish. Indexing in batches will be less work on the Solr side (assuming by indexing one doc at a time you mean index then commit).
If your users can stand the latency, just gathering them up each hour or something is certainly simpler... Best, Erick On Sat, Mar 1, 2014 at 9:50 AM, jurio <[email protected]> wrote: > Im using Solr Version 4 (api spring data solr to index,get...documents) and i > have to decide which strategy im going to apply for index my documents. > > *I hesitate between 2 strategies : > * > 1) Launch a batch periodically to index all documents > > 2) Only Index the document when this one has changed > > Which strategy is the best ? maybe a mix??or another.. I have some ideas > about cons and dis of each but i don't have a big experience with solr. > > Thanks! > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Best-strategy-to-index-document-with-Solr-tp4120614.html > Sent from the Lucene - Java Developer mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
