com.liferay.document.library.internal.search.DLOpenSearchImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.document.library.service
Show all versions of com.liferay.document.library.service
Liferay Document Library Service
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.document.library.internal.search;
import com.liferay.document.library.kernel.model.DLFileEntry;
import com.liferay.petra.string.StringPool;
import com.liferay.portal.kernel.search.HitsOpenSearchImpl;
import com.liferay.portal.kernel.search.Indexer;
import com.liferay.portal.kernel.search.IndexerRegistryUtil;
import com.liferay.portal.kernel.search.OpenSearch;
import org.osgi.service.component.annotations.Component;
/**
* @author Shuyang Zhou
*/
@Component(service = OpenSearch.class)
public class DLOpenSearchImpl extends HitsOpenSearchImpl {
public static final String TITLE = "Liferay Documents and Media Search: ";
@Override
public String getClassName() {
return DLFileEntry.class.getName();
}
@Override
public Indexer getIndexer() {
return IndexerRegistryUtil.getIndexer(DLFileEntry.class);
}
@Override
public String getSearchPath() {
return StringPool.BLANK;
}
@Override
public String getTitle(String keywords) {
return TITLE + keywords;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy