Re: Which is More Efficient Way of storing Doc Values

2017-04-27 Thread Erick Erickson
What kind of lead time to your production system? Erik Hatcher is doing some really exciting things with Payloads. The idea here is that you have one field where the store ID has a "payload", and you use that in scoring. Here's the (currently painful) hard way to do this. While more work on your pa

Which is More Efficient Way of storing Doc Values

2017-04-27 Thread Sidhant Aggarwal
Hi, I have a e-commerce search engine. In this in each document i want to store custom score of each product. And further the score of each product would depend on in which category the product was searched on. So as this is part of scoring i will be storing this data as doc values. Now i hav

Re: Which is more efficient

2009-05-05 Thread Michael McCandless
They should be very nearly the same. Under the hood, when you call updateDocument, IndexWriter buffers up the deleted terms, and flushes them periodically. Mike On Tue, May 5, 2009 at 7:42 AM, Antony Bowesman wrote: > Just wondered which was more efficient under the hood > >  for (int i = 0; i

Which is more efficient

2009-05-05 Thread Antony Bowesman
Just wondered which was more efficient under the hood for (int i = 0; i < size; i++) terms[i] = new Term("id", doc_key[i]); This writer.deleteDocuments(terms); for (int i = 0; i < size; i++) writer.addDocument(doc[i]); Or this for (int i = 0; i < size; i++) writer.updateDoc