1 /*****************************************************************************
5 * Creation date 05.10.2012
8 *****************************************************************************/
10 package org.splat.service;
12 import java.util.List;
14 import org.splat.dal.bo.som.KnowledgeElement;
15 import org.splat.dal.bo.som.Study;
16 import org.splat.service.dto.Proxy;
19 * Search service interface.
20 * @author <a href="mailto:roman.kozlov@opencascade.com">Roman Kozlov (RKV)</a>
22 public interface SearchService {
25 * Refresh lucene index for studies.
28 * list of studies id's
30 public void reindexStudies(String[] ridlist);
33 * Find knowledge elements with given properties.
34 * @param kprop search filter parameters
35 * @return the list of found knowledge elements as proxiy results of lucene search
37 public List<Proxy> selectKnowledgeElementsWhere(
38 KnowledgeElement.Properties... kprop);
41 * Find studies with given properties.
42 * @param sprop search filter parameters
43 * @return the list of found studies as proxiy results of lucene search
45 public List<Proxy> selectStudiesWhere(Study.Properties... sprop);
48 * Refresh lucene index for a study.
49 * @param study the study to reindex
51 public void indexStudy(Study study);