Hi Alexander,

1. I Optimized using Luke 0.6 - so there is 1 segment (183mb) a couple of
days ago.

2. The search takes 5 seconds before I display any results, just this line:

$hits  = $index->find($query);

And it returns a ton of data, not just the Document's ID.

Here: http://www.articlesbase.com/test-search2.php?q=business+consulting

Is there a way to limit the number of results returned or a minimum score?

PS. I also need to set 

ini_set("memory_limit","300M");

For the script to even run.

Thanks,

Simon


Alexander Veremyev wrote:
> 
> 1) Index should be optimized (have only one segment) to make search
> faster.
> 
> 2) Large search result is a cause of slow searching.
> Do you retrieve any stored field of returned hits?
> 
> Note:
> Search itself only collects documents' IDs, but retrieving any stored 
> field causes full document retrieving. It hardly increases time of large 
> result set retrieving.
> So splitting returned result into pages and retrieving any stored info 
> _only_for_current_page_ make search much more faster.
> 
> That's also good idea to store returned result (IDs and scores or only 
> IDs) into an array and cache it between requests.
> Documents could be retrieved with $index->getDocument($id) call.
> 
> With best regards,
>     Alexander Veremyev.
> 

-- 
View this message in context: 
http://www.nabble.com/Zend_Search_Lucene---Best-Practices-for-Indexing-100k%2B-articles-tf3712199s16154.html#a10606551
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to