A single negation such as the query -luxury isn't allowed in full search syntax and will always return an empty result set.ġ The | character isn't supported for OR operations. This gives you a more intuitive behavior for negations by default. In full syntax, negations will always be ANDed onto the query such that wifi -luxury is interpreted as "wifi AND NOT luxury" regardless of if the searchMode parameter is set to any or all. It's important to note that the NOT operator ( NOT, !, or -) behaves differently in full syntax than it does in simple syntax. For example, wifi –luxury will search for documents that have the wifi term but not luxury. Returns matches on documents that exclude the term. ![]() Because OR is the default conjunction operator, you could also leave it out, such that wifi luxury is the equivalent of wifi OR luxury. In the example, the query engine will return match on documents containing either wifi or luxury or both. For example, wifi luxury stipulates that both terms must appear somewhere in the field of a single document.įinds a match when either term is found. The plus character ( ) can also be used directly in front of a term to make it required. In the example, the query engine will look for documents containing both wifi and luxury. Specifies terms that a match must contain. Always specify text boolean operators (AND, OR, NOT) in all caps. The full syntax supports text operators in addition to character operators. You can embed Boolean operators in a query string to improve the precision of a match. Special characters that require escaping include the following: -
0 Comments
Leave a Reply. |