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.ImportedStudyDTO;
17 import org.splat.service.dto.Proxy;
20 * Search service interface.
22 * @author <a href="mailto:roman.kozlov@opencascade.com">Roman Kozlov (RKV)</a>
24 public interface SearchService {
27 * Get a list of studies which are currently not presented in the lucene index.
29 * @return list of ImportedStudy DTO
31 List<ImportedStudyDTO> selectStudies();
34 * Refresh lucene index for studies.
37 * list of studies id's
39 void reindexStudies(String[] ridlist);
42 * Find knowledge elements with given properties.
45 * search filter parameters
46 * @return the list of found knowledge elements as proxiy results of lucene search
48 List<Proxy> selectKnowledgeElementsWhere(
49 KnowledgeElement.Properties... kprop);
52 * Find studies with given properties.
55 * search filter parameters
56 * @return the list of found studies as proxiy results of lucene search
58 List<Proxy> selectStudiesWhere(Study.Properties... sprop);
61 * Refresh lucene index for a study.
64 * the study to reindex
66 void indexStudy(Study study);