[opencms-dev] Limit the number of items returned from Lucene

Roman Uhlig Maxity.de roman.uhlig at maxity.de
Thu Dec 3 15:15:27 CET 2009


 
an example:

<jsp:useBean id="search" class="org.opencms.search.CmsSearch" scope="request">
<%
	search.init(cms.getCmsObject());
	String[] fields = {"content","title","description"};
	search.setField(fields);
	search.setMatchesPerPage(100); // maximum number of results to be delivered by Lucene
	search.setDisplayPages(10);
	search.setIndex("mySearchIndex");
%>
</jsp:useBean>


Roman


-----Ursprüngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Ulysses Tannure
Gesendet: Donnerstag, 3. Dezember 2009 15:09
An: opencms-dev at opencms.org
Betreff: [opencms-dev] Limit the number of items returned from Lucene

Hi folks,

I need to limit the number of items returned from Lucene.

Any hints ?

Att,

Ulysses Victor


_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev



More information about the opencms-dev mailing list