Sometimes, we have a lot of different formatted documents. We create index then perform search and API shows hits from all the indexed documents. Ever thought to get search results from desired documents only?
Let’s dig it further. Suppose, you have multiple TXT, XLSX and DOCX documents. What if you want to search a word or text only in TXT and DOCX files with specific word occurrence in file names? We’ve now improved ISearchDocumentFilter interface for such a purpose in GroupDocs.Search. This interface represents search document filter and it uses SearchDocumentFilter class for creation of a filter instances.
Let’s now understand this with a use-case.
What we did in this example? We initiated a request to search occurrence of a word hobbit in all the TXT and DOCX files with word task in their file names. In this snippet, you can see a method CreateConjuction. It creates logical conjunction (logical and) of the specified filters.
Settings for Log Functionality
This improvement allows to set up log file name and maximum log file size. Below are the public API changes.
Following class has been added to GroupDocs.Search namespace and com.groupdocs.search package:
Following properties are added to GroupDocs.Search.LogSettings and com.groupdocs.search.LogSettings class: C#
- string FileName
- double MaxSize
- String getFileName()
- void setFileName(String value)
- double getMaxSize()
- void setMaxSize(double value)
Below properties are added to GroupDocs.Search.Index and com.groupdocs.search.Index classes respectively:
- LogSettings LogSettings
- LogSettings getLogSettings()
Let’s go through the implementation:
Add English Synonyms
This improvement adds English synonyms to default synonym dictionary.
Above are the major improvements introduced in version 19.5. Please go through all the other changes in release notes: