Hi I'm playing around with ZF's lucene classes and i'm wondering which is the purpose of having "setResultSetLimit" function as it only returns a subset from all the results. As I've understood, from documentation, this function returns the First N instead of Best N matches, so now i can't see the use cases for this function. The standard usage form of Lucene is search through all the available data, paging, and so on.
So, following some advices from mailing list, instead of using these function now I'm getting a Big array of "id-score" results to take account of all the matched data, but php is throwing a memory usage of about 50Mb for 15.000 results. I'm only reading the first N documents in the iteration, once read, I break the loop. We're planning to offer a search box in our website frontpage, but when we'll have hundreds of thousands of entries in the index, i don't know if it will become useless as it will show results with 1 second or more on delay. Autocomplete (scriptaculous) input boxes will be based in lucene search abilities too. I'm not an expert about lucene, but i want to know if this a common usage compared with Java's version. I don't know if this memory costs or execution times will be too much for the server. Thanks -- Xavier Vidal Piera Enginyer Tècnic Informàtic de Gestió Tècnic Especialista Informàtic d'equips [EMAIL PROTECTED] [EMAIL PROTECTED] http://web.xaviervidal.net 610.68.41.78
