Problem, Question

You would like to limit the resultset that is returned (Like a “Top” in MS SQL, a “LIMIT” in MySQL or “ROWNUM” in Oracle ).

Resolution, Answer

You can call com.day.crx.query.lucene.CRXQuery.setLimit(long limit) method before you execute the query.

Applies to

CRX 1.4.x

Šis darbs ir licencēts saskaņā ar Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported licenci  Uz portālā Twitter™ un Facebook izvietotajiem ziņojumiem neattiecas Creative Commons sistēmas noteikumi.

Juridisks paziņojums   |   Tiešsaistes konfidencialitātes politika