Bean Software Search Control Documentation   
 
 
     




DefaultOperator Property


Description:
This property is relevant only if TypeOfSearch property is set to Expression
If boolean operator between search terms is missing, value of DefaultOperator property is used.


[Visual Basic .NET]

Public Property DefaultOperator() As enuDefaultOperator


[C#]

public enuDefaultOperator DefaultOperator() {get; set;}

Data type: enuDefaultOperator

Default value: enuDefaultOperator.AND

Example: Let DefaultOperator is set to enuDefaultOperator.AND and TypeOfSearch is set to enuTypeOfSearch.Expression. Text "apple banana" will be understand as "apple AND banana".

If there is already boolean operator between words (e. g. for Text property equal to "apple or banana", default operator is not needed and it will not be used.