Foxit PDF SDK
foxit.pdf.actions.SearchOption Class Reference

Inherits SystemIDisposable.

Public Types

enum  WordMatching { WordMatching.e_WordMatchingMatchPhrase = 0, WordMatching.e_WordMatchingMatchAllWords = 1, WordMatching.e_WordMatchingMatchAnyWord = 2 }
 Enumeration for word matching. More...
 

Public Member Functions

 SearchOption ()
 Constructor.
 
 SearchOption (bool is_whole_word, bool is_case_sensitive, bool is_search_bookmarks, bool is_search_in_marup, bool is_search_in_attachments, bool is_ignore_accents, bool is_proximity, bool is_stemming, bool is_ignore_full_width, int max_docs, SearchOption.WordMatching word_matching, bool is_search_doc_text)
 Constructor, with parameters. More...
 
 SearchOption (SearchOption search_option)
 Constructor, with another search option object. More...
 
void Set (bool is_whole_word, bool is_case_sensitive, bool is_search_bookmarks, bool is_search_in_marup, bool is_search_in_attachments, bool is_ignore_accents, bool is_proximity, bool is_stemming, bool is_ignore_full_width, int max_docs, SearchOption.WordMatching word_matching, bool is_search_doc_text)
 Set values. More...
 

Properties

bool is_case_sensitive [get, set]
 Specifies whether the search query is case sensitive. Defaule value: false.
 
bool is_ignore_accents [get, set]
 Specifies whether accents and diacriticals are ignored while searching the query term. Defaule value: false.
 
bool is_ignore_full_width [get, set]
 Specifies whether full width and half width characters in the document exactly match the search query. true means ignore full width and half width matching, while false means exactly match the search query. Defaule value: false.
 
bool is_proximity [get, set]
 Specifies whether the search query will reflect the proximity of words in the results ranking when performing the search that contains AND Boolean clauses. Defaule value: false.
 
bool is_search_bookmarks [get, set]
 Specifies whether bookmarks are searched for the query. Defaule value: false.
 
bool is_search_doc_text [get, set]
 Specifies whether the document text is searched for the query. Defaule value: true.
 
bool is_search_in_attachments [get, set]
 Specifies whether any PDF file attachments should be searched along with the base document. Defaule value: false.
 
bool is_search_in_markup [get, set]
 Specifies whether markup (annotations) are searched for the query. Defaule value: false.
 
bool is_stemming [get, set]
 Specifies whether the search query will take the stemming of words (for example, run, runs, running) into account when performing the search. Defaule value: false.
 
bool is_whole_word [get, set]
 Specifies whether search finds only occurrences of complete words that are specified in the query. Defaule value: false.
 
int max_docs [get, set]
 The maximum number of documents that will be returned as part of the search query. Defaule value: 100.
 
SearchOption.WordMatching word_matching [get, set]
 How individual words in the query will be matched to words in the document. This property is relevant only when a query has more than one word. Please refer to values starting from foxit.pdf.actions.SearchOption.WordMatching.e_WordMatchingMatchPhrase and this should be one of these values.
 

Detailed Description

This class represents search option.

Member Enumeration Documentation

◆ WordMatching

Enumeration for word matching.

Values of this enumeration should be used alone.

Enumerator
e_WordMatchingMatchPhrase 

Word matching: match phrase.

e_WordMatchingMatchAllWords 

Word matching: match all words.

e_WordMatchingMatchAnyWord 

Word matching: match any word.

Constructor & Destructor Documentation

◆ SearchOption() [1/2]

foxit.pdf.actions.SearchOption.SearchOption ( bool  is_whole_word,
bool  is_case_sensitive,
bool  is_search_bookmarks,
bool  is_search_in_marup,
bool  is_search_in_attachments,
bool  is_ignore_accents,
bool  is_proximity,
bool  is_stemming,
bool  is_ignore_full_width,
int  max_docs,
SearchOption.WordMatching  word_matching,
bool  is_search_doc_text 
)
inline

Constructor, with parameters.

Parameters
[in]is_whole_wordSpecifies whether search finds only occurrences of complete words that are specified in the query.
[in]is_case_sensitiveSpecifies whether the search query is case sensitive.
[in]is_search_bookmarksSpecifies whether bookmarks are searched for the query.
[in]is_search_in_attachmentsSpecifies whether any PDF file attachments should be searched along with the base document.
[in]is_ignore_accentsSpecifies whether accents and diacriticals are ignored while searching the query term.
[in]is_proximitySpecifies whether the search query will reflect the proximity of words in the results ranking when performing the search that contains AND Boolean clauses.
[in]is_stemmingSpecifies whether the search query will take the stemming of words (for example, run, runs, running) into account when performing the search.
[in]is_ignore_full_widthSpecifies whether full width and half width characters in the document exactly match the search query.
[in]max_docsThe maximum number of documents that will be returned as part of the search query.
[in]word_matchingHow individual words in the query will be matched to words in the document.
[in]is_search_doc_textSpecifies whether the document text is searched for the query.

◆ SearchOption() [2/2]

foxit.pdf.actions.SearchOption.SearchOption ( SearchOption  search_option)
inline

Constructor, with another search option object.

Parameters
[in]search_optionAnother search option object.

Member Function Documentation

◆ Set()

void foxit.pdf.actions.SearchOption.Set ( bool  is_whole_word,
bool  is_case_sensitive,
bool  is_search_bookmarks,
bool  is_search_in_marup,
bool  is_search_in_attachments,
bool  is_ignore_accents,
bool  is_proximity,
bool  is_stemming,
bool  is_ignore_full_width,
int  max_docs,
SearchOption.WordMatching  word_matching,
bool  is_search_doc_text 
)
inline

Set values.

Parameters
[in]is_whole_wordSpecifies whether search finds only occurrences of complete words that are specified in the query.
[in]is_case_sensitiveSpecifies whether the search query is case sensitive.
[in]is_search_bookmarksSpecifies whether bookmarks are searched for the query.
[in]is_search_in_attachmentsSpecifies whether any PDF file attachments should be searched along with the base document.
[in]is_ignore_accentsSpecifies whether accents and diacriticals are ignored while searching the query term.
[in]is_proximitySpecifies whether the search query will reflect the proximity of words in the results ranking when performing the search that contains AND Boolean clauses.
[in]is_stemmingSpecifies whether the search query will take the stemming of words (for example, run, runs, running) into account when performing the search.
[in]is_ignore_full_widthSpecifies whether full width and half width characters in the document exactly match the search query.
[in]max_docsThe maximum number of documents that will be returned as part of the search query.
[in]word_matchingHow individual words in the query will be matched to words in the document.
[in]is_search_doc_textSpecifies whether the document text is searched for the query.
Returns
None.