package com.liferay.portlet.documentlibrary.util;
import com.liferay.portal.kernel.search.Hits;
<BUG>import com.liferay.portal.kernel.search.SearchEngineUtil;</BUG>
import com.liferay.portal.search.HitsOpenSearchImpl;
import com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil;
public class DLOpenSearchImpl extends HitsOpenSearchImpl {
public static final String SEARCH_PATH = "/c/document_library/open_search";
public static final String TITLE = "Liferay Document Library Search: ";
<BUG>public Hits getHits(long companyId, String keywords) throws Exception {
return DLFolderLocalServiceUtil.search(
companyId, 0, null, keywords, SearchEngineUtil.ALL_POS,
SearchEngineUtil.ALL_POS);</BUG>
}

package com.liferay.portlet.documentlibrary.util;
import com.liferay.portal.kernel.search.Hits;
import com.liferay.portal.search.HitsOpenSearchImpl;
import com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil;
public class DLOpenSearchImpl extends HitsOpenSearchImpl {
public static final String SEARCH_PATH = "/c/document_library/open_search";
public static final String TITLE = "Liferay Document Library Search: ";
public Hits getHits(
long companyId, String keywords, int start, int end)
throws Exception {
return DLFolderLocalServiceUtil.search(
companyId, 0, null, keywords, start, end);
}
