public static int[] GetDocLangIdsRes(string applicant, string applicationNumber, string ecli, string basePath)
        {
            var paramsp = new SearchParams();

            paramsp.DocType     = DocumentTypeEnum.Judgment;
            paramsp.CaseLawType = ApisLucene.Classes.Common.CaseLawType.ECHR;

            if (!String.IsNullOrEmpty(applicant))
            {
                paramsp.Applicant = applicant;
            }

            if (!String.IsNullOrEmpty(applicationNumber))
            {
                paramsp.DocumentNumber = applicationNumber;
            }

            if (!String.IsNullOrEmpty(ecli))
            {
                paramsp.NationalIdOrEcli = ecli;
            }

            var realPath = Path.Combine(basePath, ConfigurationManager.AppSettings["SearchWrapper_BasePath"]);

            var dic           = paramsp.GetParams();
            var searchWrapper = new EUCasesSearchWrapper(realPath);
            var res           = searchWrapper.SearchDictBoost(dic, false);

            return(res);
        }
        public int[] GetDocLangIdsResByQuery(string searchQuery, string basePath)
        {
            var realPath = Path.Combine(basePath, ConfigurationManager.AppSettings["SearchWrapper_BasePath"]);
            var wrapper  = new EUCasesSearchWrapper(ConfigurationManager.AppSettings["SearchWrapper_BasePath"]);

            var result = wrapper.SearchQuery(searchQuery, true);

            return(result);
        }
        public void Refresh()
        {
            if (this.searchWrapper != null)
            {
                this.searchWrapper.Dispose();
                this.searchWrapper = null;
            }

            this.searchWrapper    = new EUCasesSearchWrapper(this.ftiPath);
            this.filterDocsStruct = new FilterDocsStruct();
            this.filterDocsStruct.LoadFromFile(this.docToClassifierPath);
            this.resultsGrouper = new ResultsGrouper(this.resultsGrouperPath);
        }