CORRECT QUESTIONING OF QUESTIONS
Simple terms and phrases
In the search process, you can use simple terms, ie individual words and phrases composed of several words, enclosed in quotation marks, such as "Kyiv Polytechnic".
Search terms can be combined using logical operators. You can also use characters that replace any letters and numbers and their strings, search for similar terms spaced apart, or prioritize search terms.
Boolean (Boolean) operators:
AND - also written as && - means that the terms must be present in the search document at the same time. For example, a request in the form of Kyiv Polytechnic Institute && Sikorsky will select only those documents in which both names appear simultaneously. Using the AND operator is a default search engine function if more than one word is entered, so the same result can be obtained by typing Kyiv Polytechnic Institute Sikorsky.
OR - also marked || - Requires at least one of the terms to appear in the search document.
NO - alternate entry! - excludes from the list of results documents in which there is a missed term. For example, at the request of "Igor Sikorsky NOT University" the reader will receive materials relating to the person of Igor Sikorsky without mentioning KPI. Igor Sikorsky.
"+" - search for documents that contain this term immediately after "+", but not necessarily other terms, for example, the library + university will select documents that should contain a library of words, and may (but not necessarily) contain the word university.
"-" - works the same way as NOT the operator.
Characters that replace numbers or letters
? - replaces any one character. For example, the query Kovalsk? suitable for both Kowalski and Kowalska.
* - replaces a string, such as an entry: m * ka will search for words such as mechanics, math, brand, and so on. The character cannot be placed at the beginning of search terms
Proximity Searches
Fuzzy search finds application in the case of simple words similar to each other. Documents containing these words can be found by adding the character ~ to the word. For example, Konovalov ~
Full description of how to formulate queries (page in English): Jakarta Lucene Query Parser Sy