[opencms-dev] OpenCms search - max search results = 10

Kesarkar, Dipak dipak.kesarkar at capgemini.com
Thu Jan 29 11:26:17 CET 2009


Hi,

 

I am using OpenCms 7.0.5 with Lucene search engine.

I am using following code to perform search

 

      CmsSearch cmsSearch = new CmsSearch();

      cmsSearch.init(CmsObjectLoader.getInstance().getCmsObject());

      cmsSearch.setIndex(this.searchIndex);

      cmsSearch.setField(this.searchFields);

cmsSearch.setQuery(this.searchQuery

      List<CmsSearchResult> currentSearchResults =
cmsSearch.getSearchResult();

 

With this I am facing an issue of receiving maximum 10 results when I
expect more that 10.

 

Could someone tell me what could be the mistake here?

 

 

Thanks,

Dipak







This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to 
read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message 
in error, please notify the sender immediately and delete all copies of this message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20090129/9da2103b/attachment.htm>


More information about the opencms-dev mailing list