AnsweredAssumed Answered

Lucene LIMITBY

Question asked by koenv on Sep 1, 2008
Latest reply on Sep 2, 2008 by koenv
Hello,

I'm trying to limit a lucene search but still got more results then asked.

s.setLanguage(SearchService.LANGUAGE_LUCENE);
s.setLimitBy(LimitBy.FINAL_SIZE);
s.setLimit(1000);
s.setQuery(query);
s.addStore(storeRef);

Still having results with thousands of records.
If i try to read only the first 1000 records of the big result, it is very slow!

I am running this as System User … on Alfresco Enterprise 2.2

Anyone idea what is the problem?

thanks,
Koen

Outcomes