best way to iterate through all docs from a query

2009-11-19 Thread it99
What is the best way to iterate across all the documents in a search results? Previously I was using the deprecated Hits object but changed the implentations as recommended in javadocs to ScoreDoc. I've tried the following but I've seen warning about peformance. Seems the first time I query some

Re: best way to iterate through all docs from a query

2009-11-20 Thread it99
u are just going to display the first > 10, pass 10. > > > -- > Ian. > > > On Thu, Nov 19, 2009 at 3:36 PM, it99 wrote: >> >> What is the best way to iterate across all the documents in a search >> results? >> Previously I was using the deprecate

Re: best way to iterate through all docs from a query

2009-11-20 Thread it99
all, your doc IDs won't change. > But as I said, some operations you don't think would change your doc IDs > actually will.... > > HTH > Erick > > On Fri, Nov 20, 2009 at 10:17 AM, it99 wrote: > >> >> Thanks that helped a lot with the speed!! >