ApproxIndexes.Indexes.PerformSearch C# (CSharp) Method

PerformSearch() public static method

public static PerformSearch ( string resname, Index idx, string idxname, IndexArgumentSetup setup ) : void
resname string
idx Index
idxname string
setup IndexArgumentSetup
return void
        public static void PerformSearch(string resname, Index idx, string idxname, IndexArgumentSetup setup)
        {
            if (setup.ExecuteSearch) {
                var ops = new ShellSearchOptions (setup.QUERIES, idxname, resname);
                var qstream = new QueryStream (setup.QUERIES, setup.QARG);
                Commands.Search (idx, qstream.Iterate (), ops);
                GC.Collect ();
            }
        }