![]() ![]() To specify a phrase in a KQL query, you must use double quotation marks. When you use phrases in a free-text KQL query, Search in SharePoint returns only the items in which the words in your phrase are located next to each other. KQL queries don't support prefix matching with the wildcard * as prefix. In prefix matching, Search in SharePoint matches results with terms that contain the word followed by zero or more characters.įor example, the following KQL queries return content items that contain the terms "federated" and "search": You can use just a part of a word, from the beginning of the word, by using the wildcard operator (*) to enable prefix matching. When you use words in a free-text KQL query, Search in SharePoint returns results based on exact matches of your words with the terms stored in the full-text index. If there are multiple free-text expressions without any operators in between them, the query behavior is the same as using the AND operator. To construct complex queries, you can combine multiple free-text expressions with KQL query operators. ![]() You can construct KQL queries by using one or more of the following as free-text expressions:Ī word (includes one or more characters without spaces or punctuation)Ī phrase (includes two or more words together, separated by spaces however, the words must be enclosed in double quotation marks) This includes managed property values where FullTextQueriable is set to true.įree text KQL queries are case-insensitive but the operators must be in uppercase. When you construct your KQL query by using free-text expressions, Search in SharePoint matches results for the terms you chose for the query based on terms stored in the full-text index. You can increase this limit up to 20,480 characters by using the MaxKeywordQueryTextLength property or the DiscoveryMaxKeywordQueryTextLength property (for eDiscovery). However, KQL queries you create programmatically by using the Query object model have a default length limit of 4,096 characters. If you create the KQL query by using the default SharePoint search front end, the length limit is 2,048 characters. The length limit of a KQL query varies depending on how you create it. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |