Example #1
0
        static void Main(string[] args)
        {
            //Uncomment to apply license
            Utilities.ApplyLicense();

            #region Searching
            ////Simple search, search a word
            //Searching.SimpleSearch("hydra");

            ////Search term1 and term2 or term3 but not term4
            //Searching.BooleanSearch("(dropbox AND twist)","(return NOT omega)");

            ////Search for documents that contain a relevant word and term1, an email address or term2
            //Searching.RegexSearch("^.*turn.*$", @"dropbox ^[A-Z0-9._%+\-|A-Z0-9._%+-]+@++[A-Z0-9.\-|A-Z0-9.-]+\.[A-Z|A-Z]{2,}$ folder");

            ////Search results from misspelled search query
            //Searching.FuzzySearch("retur");

            ////Searching for any document in index that contain word "return" in file content
            Searching.FacetedSearch("return");

            ////Searching for any document in index that contain word "readme" in file name
            //Searching.SearchFileName("readme");

            ////Faceted search combine with boolean search
            //Searching.FacetedSearchWithBooleanSearch("(dropbox OR comsats)","(search AND engine)");

            ////Searching for documents with words one of words "remote", "virtual" or "online"
            //Searching.SynonymSearch("quick");

            #endregion

            #region Indexing

            //Indexing.LoadIndex();

            //Indexing.AddDocumentToIndex();

            //Indexing.AddDocumentToIndexAsynchronously();

            //Indexing.CreateIndexInMemory();

            //Indexing.CreateIndexInMemoryWithIndexSettings();

            //Indexing.CreateIndexOnDisk();

            //Indexing.CreateWithOverwritingExistedIndex();

            //Indexing.UpdateIndex();

            //Indexing.UpdateIndexAsynchronously();

            //Indexing.UpdateIndexInRepoAsynchronously();

            //Indexing.UpdateIndexInRepository();

            //Indexing.SubscriptionToEvents();

            //Indexing.CustomExtractor();

            //Indexing.PreventUnnecessaryFileIndex();

            //Indexing.SearchingEmailMessages();
            #endregion
        }