Data Fragment logo

Search query syntax and operators

By understanding the search syntax and search operators of the DataFragment search engine, you will be able to conduct more precise and advanced searches.

Search syntax rules

Rule 1Sentence

In order to search an exact sentence, you can wrap your sentence with the double quotes. "

Search query example
"sentence 1"
Rule 2Special character

All the following characters
+ - = && || > < ! ( ) { } [ ] ^ " ~ * ? : \ / are considered as special and are begin replace by a spaceduring the search.

Rule 3Default operator

When no operator is specified between words and sentences, the default that is being used is the operator AND.
which means that the query operator + is being automatically inserted in the search query in the background.')}}

Both of the following search queries are equivalent:
word1 + word1
"sentence 1" + word1
Rule 4Case sensitive

Search is not case sensitive. It means
uppercase character = lowercase character

Both of the following search queries are equivalent:
"sentence 1"
"sEntEncE 1"

Operators

Operator 1AND

The character +or & can be used in the search query in order to combine words or sentences during search.

Search query example
word1 + "sentence 1"
word1 & "sentence 1"
Operator 2OR

The character| can be used in the search query in order to search one part of the query or the other one.

Search query example
word1
"sentence 1"
Operator 3Not present

The character- can be used in order exclude a word or a sentence from the search.

Search query example
word1 + -wordNotPresent
word1 + -wordNotPresent1 + -wordNotPresent2
Operator 4Begin with

* can be used after a word in order to search everything that begins with the word before the * operator.

Search query example
prefix*
prefix* + "sentence 1"
word1* + -wordExcluded + -anotherWordExcluded
Operator 5Group search

Search query expressions can be grouped like in maths expression with parenthesis. ( )and operators

Search query example
("sentence 1" + "sentence 2") | (word1 + "sentence 3")
("sentence 1" + "sentence 2") | (word1 | word2)

You have a question or need some help?

Let's connect and see how we can help you solve your problems.