15 #ifndef FS_FULLTEXTSEARCH_H_ 16 #define FS_FULLTEXTSEARCH_H_ 58 int match_start_text_index,
int match_end_text_index) = 0;
134 typedef enum _RankMode {
229 bool reupdate =
false);
266 #endif // FS_FULLTEXTSEARCH_H_ virtual void Release()=0
A callback function used to release current callback object itself.
DocumentsSource(const char *directory)
Constructor, with a directory.
Definition: fs_fulltextsearch.h:68
No ranking mode is used for searching results.
Definition: fs_fulltextsearch.h:136
Definition: fs_fulltextsearch.h:37
bool IsEmpty() const
Check whether current object is empty or not.
bool UpdateIndexWithFilePath(const char *file_path)
Update the index result of a specified PDF file.
WIDE STRING CLASS.
Definition: fx_string.h:1452
Rank the searching results according to how the result matches the expected searching patten,...
Definition: fs_fulltextsearch.h:146
FullTextSearch & operator=(const FullTextSearch &other)
Assign operator.
Definition: fs_fulltextsearch.h:127
void SetDataBasePath(const char *path_of_data_base)
Set a file path as sqlite data base which is used for storing the indexed data.
DocumentsSource & operator=(const DocumentsSource &other)
Assign operator.
~FullTextSearch()
Destructor.
RankMode
Enumeration for rank mode of full text search.
Definition: fs_fulltextsearch.h:134
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)=0
A callback function used to retrieve the searching result.
Definition: fx_basic.h:3752
Definition: fs_common.h:568
void * FS_HANDLE
Handle type.
Definition: fs_basictypes.h:216
Header file for common definitions and classes.
~DocumentsSource()
Destructor.
bool operator !=(const FullTextSearch &other) const
Not equal operator.
Definition: fs_basictypes.h:399
bool SearchOf(const char *match_string, RankMode rank_mode, SearchCallback *callback)
Search for specified text among the indexed PDF files.
bool operator==(const DocumentsSource &other) const
Equal operator.
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.
Foxit namespace.
Definition: fs_compare.h:27
bool operator !=(const DocumentsSource &other) const
Not equal operator.
bool IsEmpty() const
Check whether current object is empty or not.
#define NULL
The null-pointer value.
Definition: fx_system.h:767
FullTextSearch()
Constructor.
Rank the searching results according to how the result matches the expected searching patten,...
Definition: fs_fulltextsearch.h:141
bool operator==(const FullTextSearch &other) const
Equal operator.