2 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
\r
4 * This library is free software; you can redistribute it and/or modify it under
\r
5 * the terms of the GNU Lesser General Public License as published by the Free
\r
6 * Software Foundation; either version 2.1 of the License, or (at your option)
\r
9 * This library is distributed in the hope that it will be useful, but WITHOUT
\r
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
\r
11 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
\r
15 package com.liferay.portal.kernel.search;
\r
17 import java.util.List;
\r
19 import com.liferay.portal.kernel.messaging.proxy.MessagingProxy;
\r
20 import com.liferay.portal.kernel.messaging.proxy.ProxyMode;
\r
23 * @author Bruno Farache
\r
24 * @author Raymond Augé
\r
26 @MessagingProxy(mode = ProxyMode.SYNC)
\r
27 public interface IndexSearcher {
\r
29 public Hits search(SearchContext searchContext, Query query)
\r
30 throws SearchException;
\r
33 String searchEngineId, long companyId, Query query, Sort[] sort,
\r
35 throws SearchException;
\r
38 String searchEngineId, long companyId, Query query, Sort[] sort, List<String> filters,
\r
40 throws SearchException;
\r