private void DoFulltext() { // getting (and setting) params for fulltext -> string[] includes = new string[0]; string[] excludes = new string[0]; FulltextHelper.CreateIncludesAndExcludes(out includes, out excludes, SchemaTableFulltext, SchemaTableFulltextExclude); var listsTable = FulltextHelper.CreateFulltextValueLists(includes, excludes, 0); FulltextHelper.CreateIncludesAndExcludes(out includes, out excludes, SchemaColumnFulltext, SchemaColumnFulltextExclude); var listsColumn = FulltextHelper.CreateFulltextValueLists(includes, excludes, 1); var includesList = listsTable[0].Concat(listsColumn[0]).ToList(); var excludesList = listsTable[1].Concat(listsColumn[1]).ToList(); var startingVisibility = includesList.Count() == 0; if (startingVisibility && excludesList.Count() > 0) { startingVisibility = false; } // own fulltext action -> FulltextHelper.DoFulltext(false, SelectedSprint.DbSchemaTables, includesList, excludesList, 0); }
private void DoFilter() { SelectedExcel = null; SelectedTab = null; SelectedDbTable = null; SelectedDbColumn = null; ExcelVisible = false; TabVisible = false; TableVisible = false; ColumnVisible = false; // getting (and setting) params for fulltext -> string[] includes = new string[0]; string[] excludes = new string[0]; FulltextHelper.CreateIncludesAndExcludes(out includes, out excludes, ExcelFulltext, ExcelFulltextExclude); var listsExcel = FulltextHelper.CreateFulltextValueLists(includes, excludes, 0); FulltextHelper.CreateIncludesAndExcludes(out includes, out excludes, SheetFulltext, SheetFulltextExclude); var listsSheet = FulltextHelper.CreateFulltextValueLists(includes, excludes, 1); FulltextHelper.CreateIncludesAndExcludes(out includes, out excludes, TableFulltext, TableFulltextExclude); var listsTable = FulltextHelper.CreateFulltextValueLists(includes, excludes, 2); FulltextHelper.CreateIncludesAndExcludes(out includes, out excludes, ColumnFulltext, ColumnFulltextExclude); var listsColumn = FulltextHelper.CreateFulltextValueLists(includes, excludes, 3); var includesList = listsExcel[0].Concat(listsSheet[0]).Concat(listsTable[0]).Concat(listsColumn[0]).ToList(); var excludesList = listsExcel[1].Concat(listsSheet[1]).Concat(listsTable[1]).Concat(listsColumn[1]).ToList(); //var startingVisibility = includesList.Count() == 0; //if (excludesList.Count() > 0) startingVisibility = true; // own fulltext action -> FulltextHelper.DoFulltext(HasIncludesBiggerPriority, NodesExcel, includesList, excludesList, 0); }