Go to the documentation of this file.
15 #ifndef FS_FULLTEXTSEARCH_H_
16 #define FS_FULLTEXTSEARCH_H_
61 int match_start_text_index,
int match_end_text_index,
const WString& sentence,
62 int match_sentence_start_text_index,
int match_sentence_end_text_index) = 0;
138 typedef enum _RankMode {
234 bool reupdate =
false);
271 #endif // FS_FULLTEXTSEARCH_H_
Rank the searching results according to how the result matches the expected searching patten,...
Definition: fs_fulltextsearch.h:145
void * FS_HANDLE
Handle type.
Definition: fs_basictypes.h:214
common::Progressive StartUpdateIndex(const DocumentsSource &source, common::PauseCallback *pause=0, bool reupdate=false)
Start to update the index of PDF files defined in a documents source object.
FullTextSearch()
Constructor.
Definition: fs_common.h:346
Definition: fs_fulltextsearch.h:72
bool UpdateIndexWithFilePath(const char *file_path)
Update the index result of a specified PDF file.
Header file for common definitions and classes.
Definition: fs_fulltextsearch.h:131
bool SearchOf(const char *match_string, RankMode rank_mode, SearchCallback *callback)
Search for specified text among the indexed PDF files.
void SetDataBasePath(const char *path_of_data_base)
Set a file path as sqlite data base which is used for storing the indexed data.
bool IsEmpty() const
Check whether current object is empty or not.
Definition: fs_fulltextsearch.h:37
DocumentsSource(const char *directory)
Constructor, with a directory.
virtual int RetrieveSearchResult(const wchar_t *file_path, int page_index, const WString &match_result, int match_start_text_index, int match_end_text_index, const WString &sentence, int match_sentence_start_text_index, int match_sentence_end_text_index)=0
A callback function used to retrieve the searching result.
RankMode
Enumeration for rank mode of full text search.
Definition: fs_fulltextsearch.h:138
~DocumentsSource()
Destructor.
No ranking mode is used for searching results.
Definition: fs_fulltextsearch.h:140
~FullTextSearch()
Destructor.
virtual void Release()=0
A callback function used to release current callback object itself.
Foxit namespace.
Definition: fs_taggedpdf.h:27
bool operator!=(const FullTextSearch &other) const
Not equal operator.
Definition: fx_basic.h:3761
DocumentsSource & operator=(const DocumentsSource &other)
Assign operator.
#define NULL
The null-pointer value.
Definition: fx_system.h:780
FullTextSearch & operator=(const FullTextSearch &other)
Assign operator.
bool operator!=(const DocumentsSource &other) const
Not equal operator.
bool IsEmpty() const
Check whether current object is empty or not.
Rank the searching results according to how the result matches the expected searching patten,...
Definition: fs_fulltextsearch.h:150
WIDE STRING CLASS.
Definition: fx_string.h:1452
bool operator==(const DocumentsSource &other) const
Equal operator.
Definition: fs_basictypes.h:427
bool operator==(const FullTextSearch &other) const
Equal operator.
@2024 Foxit Software Incorporated. All rights reserved.