[opencms-dev] Problem with limit 5000 search in OpenCms 7.5.4 + MySQL

Deiverson Silveira deiverson at solutioncms.com
Fri Sep 16 20:58:39 CEST 2011


Hi List,

I have problem in my implementation result search!

I use OpenCms 7.5.4 and MySQL 5.0.

My normal consultation within the administration interface, return the
correct amount of income (9650 objects).

However my implementation, 5000 is returning, I do not know if there is
anylimitation in the OpenCms configuration for deployment
(opencms-search.xml), but the administration behind the same index number of
actual results.

<%@page import="org.opencms.jsp.CmsJspActionElement"%>
<%@page import="org.opencms.search.CmsSearchParameters"%>
<%@page import="java.util.List"%>
<%@page import="org.opencms.search.CmsSearchResult"%>
<%
CmsJspActionElement cms = new CmsJspActionElement(pageContext, request,
response);
%>
<jsp:useBean id="search" scope="request"
class="org.opencms.search.CmsSearch">

    <jsp:setProperty name = "search" property="*"/>
    <%
    search.setDisplayPages(1);
search.setSortOrder(CmsSearchParameters.SORT_DATE_LASTMODIFIED);
search.init(cms.getCmsObject());
    %>
</jsp:useBean>
<%
search.setMatchesPerPage(10);
search.setIndex("idxLaws");
search.setQuery( "laws");


List<CmsSearchResult> list = search.getSearchResult();
int totalRegistro = search.getSearchResultCount();
out.print(totalResult);
%>

I need help!

Thank and kind regards,

Deiverson Silveira

-- 
*
www.solutioncms.com
The Brazilian
Official Provider OpenCms
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20110916/ce5d8734/attachment.htm>


More information about the opencms-dev mailing list