Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

This section lists public API changes that were introduced in GroupDocs.Search for .NET 19.2. It includes not only new and obsoleted public methods, but also a description of any changes in the behavior behind the scenes in GroupDocs.Search which may affect existing code. Any behavior introduced that could be seen as a regression and modifies existing behavior is especially important and is documented here.

...

Delete obsolete methods Import and Export

Removed obsolete methods Import an Export from dictionary classes. Please, use ImportDictionary and ExportDictionary methods instead.

Panel
titlePublic API changes

Method Import(string) has been removed from GroupDocs.Search.AliasDictionary class.
Method Export(string) has been removed from GroupDocs.Search.AliasDictionary class.
Method Import(string) has been removed from GroupDocs.Search.CharacterReplacementDictionary class.
Method Export(string) has been removed from GroupDocs.Search.CharacterReplacementDictionary class.

Method Import(string) has been removed from GroupDocs.Search.Alphabet class.
Method Export(string) has been removed from GroupDocs.Search.Alphabet class.

Method Import(string) has been removed from GroupDocs.Search.SpellingCorrector class.
Method Export(string) has been removed from GroupDocs.Search.SpellingCorrector class.

Method Import(string) has been removed from GroupDocs.Search.HomophoneDictionary class.
Method Export(string) has been removed from GroupDocs.Search.HomophoneDictionary class.

Method Import(string) has been removed from GroupDocs.Search.StopWordDictionary class.
Method Export(string) has been removed from GroupDocs.Search.StopWordDictionary class.

Method Import(string) has been removed from GroupDocs.Search.SynonymDictionary class.
Method Export(string) has been removed from GroupDocs.Search.SynonymDictionary class.

...

Implement escaping special characters in search queries

  • This improvement provides ability to escape special characters and use them in text queries.
  • The following characters are special and can be escaped: (, ), :, ", &, |, !, ^, ~, *, ?, \.
  • The space character can be escaped with sequence '\s'.
  • Also it is possible to use any Unicode character by writing escape sequence in the form '\uhhhh'. Where h is a hexadecimal digit.

...

Code Block
titleC#
languagecsharp
string indexFolder = @"c:\MyIndex";
string documentFolder = @"c:\MyDocuments";

// Creating index
Index index = new Index(indexFolder);

// Marking character '&' as a valid letter, not a separator
index.Dictionaries.Alphabet.SetRange(new char[] { '&' }, CharacterType.Letter);

// Adding documents to index
index.AddToIndex(documentFolder);

// Searching for word 'R&B'
SearchResults results0 = index.Search(@"R\&B");

// Searching for word 'R&B'
SearchResults results1 = index.Search(@"R\u0026B");

...

Implement indexing ZIP archives inside other ZIP archives

This improvement provides ability of indexing ZIP archives inside other ZIP archives of any nesting level. This functionality works automatically when adding files to an index.

...