In This Topic
Reference Guides / JavaScript API / Actions / Interface / SetSearchSettings

SetSearchSettings

In This Topic
 SetSearchSettings

This function allows you to set custom settings in the text search snap-in.

SetSearchSettings: function (docuViewareID, wholeWord, caseSensitive, anyWord, pageSelection, fuzzySearch)

Parameters

docuViewareID
The identifier for the DocuVieware™ instance you want to search the text in.                        
wholeWord
A boolean to set the whole words checkbox checked or not.
caseSensitive
A boolean to set the case sensitive checkbox checked or not.
anyWord
A boolean to set the any word checkbox checked or not.
pageSelection
A numeric value to set the current page or whole document button enabled. Possible values are:
  • 0 = Current page only
  • 1 = Whole document
fuzzySearch
A boolean that specifies if fuzzy search is activated during any text search operation. When enabled, a text search operation searches for text that matches a term closely instead of exactly. Fuzzy match is disabled by default.

Return Value

1 if error, 0 if success.