Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Alex Wallace
Lucene Implementation and Pagination.
February 29, 2008 10:25 AM
Answer

Alex Wallace

Rank: Liferay Master

Posts: 640

Join Date: November 4, 2007

Recent Posts

Hi there... We have an app based on Liferay 4.3.1

We are using the different pieces and utils that liferay provides for lucene to perform our own searches, with items we've indexed....

What I'm wondering (short of understanding the whole implementation) if the way lucene is being used, it is safe to run searches that will return thousands of hits, and take advantage of lucene's capability to return documents in a lazy fashion... In other words, lucene can do searches, and return just document ids... Only when the documents are requested to be viewed, luecene loads those documents... Is this being taken advantage of?

thanks!
Alex Wallace
RE: Lucene Implementation and Pagination.
February 29, 2008 12:38 PM
Answer

Alex Wallace

Rank: Liferay Master

Posts: 640

Join Date: November 4, 2007

Recent Posts

For what i see in code, liferay seems to only do a benign wrapping around lucene's hits in HitsImpl.java

I've learned that lucene's hits, while not good for iteration over documents, is safe to use even if the number of hits are in the millions...

So, by finding millions of hits one is not loading millions of documents... The docs are loaded when needed... There is some caching that takes place to improve performance.