id stringlengths 14 16 | text stringlengths 2 3.14k | source stringlengths 45 175 |
|---|---|---|
b514b22ba8bd-20 | When the ranking process in the first stage is complete, the search engine re-sorts all of the items, including the items that were excluded from the second stage. This usually results in items from the second stage having a lower rank score when compared to items in the first stage.
However, to ensure that the searc... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/customizing-ranking-models-to-improve-relevance-in-sharepoint |
b514b22ba8bd-21 | The ranking score produced by a neural network is computed using the following formula:
Where:
score is the output rank score produced by the neural network.
N is the number of neurons in the hidden layer of the neural network.
M is the number of rank features, excluding bucketed static rank features.
... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/customizing-ranking-models-to-improve-relevance-in-sharepoint |
b514b22ba8bd-22 | Query properties
Query properties is a ranking mechanism that populates additional information useful for rank score calculation. For example, query properties can be the time and date when the query was run, which can be used by the freshness rank feature. Table 3 lists the query properties available for ranking. Yo... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/customizing-ranking-models-to-improve-relevance-in-sharepoint |
b514b22ba8bd-23 | description="Rank model -- example 1"
id="D3FAF680-D213-4916-A95A-0409031643F8"
xmlns="urn:Microsoft.Search.Ranking.Model.2NN">
<RankingModel2NN id="619F2ECD-24F7-41CD-824C-234FC2EFDDCA" precalcEnabled="0" >
<HiddenNodes count="1">
<Thresholds>
<Threshold>0</Threshold>
... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/customizing-ranking-models-to-improve-relevance-in-sharepoint |
b514b22ba8bd-24 | UrlDepth This rank feature is based on the UrlDepth managed property, which is available by default in SharePoint installations. UrlDepth contains the number of backslashes (\) in the URL of a document. The inverse rational ( InvRational ) transform ensures that documents with shorter URLs receive higher rank sco... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/customizing-ranking-models-to-improve-relevance-in-sharepoint |
b514b22ba8bd-25 | <Weight>1</Weight>
</Layer2Weights>
</HiddenNodes>
<RankingFeatures>
<BM25Main name="BM25" k1="1">
<Layer1Weights>
<Weight>1</Weight>
</Layer1Weights>
<Properties>
<Property name="Title" prope... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/customizing-ranking-models-to-improve-relevance-in-sharepoint |
b514b22ba8bd-26 | <Add>2.5</Add>
</HiddenNodesAdds>
</Bucket>
<Bucket name="ppt" value="2">
<HiddenNodesAdds>
<Add>0.5</Add>
</HiddenNodesAdds>
</Bucket>
<Bucket name="xls" value="3">
... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/customizing-ranking-models-to-improve-relevance-in-sharepoint |
9b84dc17e81f-0 | Sort search results programmatically—by ran k, by managed property value, by a formula expression, or in random order—by using the Query object model in SharePoint.
You can sort the search results for SharePoint in four ways:
Sort search results by rank : Enables you to sort the search result by relevance rank.
... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/sorting-search-results-in-sharepoint |
9b84dc17e81f-1 | If you have multiple values in SortList , the sorting is performed based on the sequence in which the values appear. This means that every Sort object represents a sort order level. Any succeeding level does not change the ordering of results that were differentiated by previous ones, but it may affect the internal... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/sorting-search-results-in-sharepoint |
9b84dc17e81f-2 | You can sort based on text and numeric properties. For text properties, the sorting is based on standard text string sorting. In contrast, for numeric properties (including managed properties of type DateTime ), the sorting is based on numeric value.
Example
The following example shows how to sort search results b... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/sorting-search-results-in-sharepoint |
9b84dc17e81f-3 | var executor = new SearchExecutor(context);
var results = executor.ExecuteQuery(query);
context.ExecuteQuery(); | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/sorting-search-results-in-sharepoint |
9b84dc17e81f-4 | foreach (var result in results.Value[0].ResultRows)
{
Console.WriteLine(result["Title"] + " Size:" + result["Size"]);
}
}
Alternatively, you could use the Search REST API to sort search results by using the Size property with the following call.
http://localhost/_api/search/query?querytext='hom... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/sorting-search-results-in-sharepoint |
9b84dc17e81f-5 | Specifying the sort formula in a query
You specify a sort formula instead of a managed property in the sort specification of the query request.
The sort specification has the following format: [formula:<sort-formula>]
In the format, <sort-formula> is the sort formula expression.
Note
The square bracket... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/sorting-search-results-in-sharepoint |
9b84dc17e81f-6 | var executor = new SearchExecutor(context);
var results = executor.ExecuteQuery(query);
context.ExecuteQuery();
foreach (var result in results.Value[0].ResultRows)
{
Console.WriteLine(result["Title"]);
}
}
Alternatively, you could use the Search REST API to sort search results by using... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/sorting-search-results-in-sharepoint |
9b84dc17e81f-7 | Using managed properties in the sort formula
You can apply a sort formula on the value of managed properties of type Integer , Decimal , and Datetime() . You must enable sorting for the specified managed property in the search schema.
For more managed properties of type Decimal , the value is multiplied by 10^... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/sorting-search-results-in-sharepoint |
9b84dc17e81f-8 | [0-9.]+
Specifies that numbers can be given as integer or double values. Examples: 503, 3.14, 5.4352262
[a-z0-9]+]
Specifies that any character sequence not recognized as a function name is treated as a managed property name. You must enable sorting for the specified managed property in the search sc... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/sorting-search-results-in-sharepoint |
9b84dc17e81f-9 | sin(n)
The sine of n radians.
cos(n)
The cosine of n radians.
tan(n)
The tangent of n radians.
asin(n)
The arcsine, in radians, of n .
acos(n)
The arccosine, in radians, of n .
atan(n)
The arctangent, in radians, of n .
pow(x,y)
The... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/sorting-search-results-in-sharepoint |
9b84dc17e81f-10 | errtolast(x)
An operator that can be used to control how to handle formula exceptions; x can be any formula expression. If the calculation of this formula expression leads to a mathematical exception for an item in the result set, such as division by zero, these items appear at the end of the sort list, regardle... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/sorting-search-results-in-sharepoint |
9b84dc17e81f-11 | var executor = new SearchExecutor(context);
var results = executor.ExecuteQuery(query);
context.ExecuteQuery();
foreach (var result in results.Value[0].ResultRows)
{
Console.WriteLine(result["Title"]);
}
}
Alternatively, you could use the Search REST API to place the items that have th... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/sorting-search-results-in-sharepoint |
9b84dc17e81f-12 | context.ExecuteQuery();
foreach (var result in results.Value[0].ResultRows)
{
Console.WriteLine(result["Title"]);
}
}
Example 3. Round the values of size into buckets, rounding values down to one of the following: 0, 5, 15, 50, 100; sort with largest values first.
using (var context = new C... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/sorting-search-results-in-sharepoint |
9b84dc17e81f-13 | foreach (var result in results.Value[0].ResultRows)
{
Console.WriteLine(result["Title"]);
}
}
Sort search results in random order
You may apply random sorting of the query result, or add a random component to the result sorting.
The random sort specification has the following format: [rand... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/sorting-search-results-in-sharepoint |
9b84dc17e81f-14 | No
By providing the same seed for equal queries, items will be presented in the same order. This enables you to preserve the same random order when paging through search results. Use the hashfield parameter if you want to preserve the same random order when an index update accidentally occurs between the q... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/sorting-search-results-in-sharepoint |
9b84dc17e81f-15 | var executor = new SearchExecutor(context);
var results = executor.ExecuteQuery(query);
context.ExecuteQuery();
foreach (var result in results.Value[0].ResultRows)
{
Console.WriteLine(result["Title"]);
}
}
Alternatively, you could use the Search REST API to sort the entire result set i... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/sorting-search-results-in-sharepoint |
2eb1e60c32f6-0 | Learn how to group similar items or remove duplicate items in a search result set in SharePoint so you can display these results in a concise, readable way.
In search results, grouping collapses two or more similar items in a search result set to make their display more readable for a user. Duplicate removal of searc... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/customizing-search-results-in-sharepoint |
2eb1e60c32f6-1 | Prop(','Prop)*[':'Dups]
Prop
A valid managed property or an alias of a managed property. Prop is case-insensitive. The managed property must be queryable and either sortable or refineable.
Dups
An integer specifying the number of items to retain. The default value is 1.
<space>
Properties are... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/customizing-search-results-in-sharepoint |
2eb1e60c32f6-2 | 19W X0196 Black
Computer 1
Laptops
Adventure Works
12 M1201 Red
Computer 2
Laptops
Adventure Works
15.4W M1548 White
Computer 3
Laptops
Proseware
19 X910 Black
Computer 4
Laptops
Proseware
Laptop19 X910 Black
Computer 5
Desktops
Adventure Works
2.33 XD233 Silv... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/customizing-search-results-in-sharepoint |
2eb1e60c32f6-3 | Computer 2
Desktops
Adventure Works
2.33 XD233 Silver
Computer 6
Desktops
WWI
2.33 X2330 Black
Computer 7
Use the following code to collapse the search results by using the CollapseSpecification property.
using (var context = new ClientContext("http://localhost"))
{
var query = n... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/customizing-search-results-in-sharepoint |
2eb1e60c32f6-4 | var executor = new SearchExecutor(context);
var results = executor.ExecuteQuery(query);
context.ExecuteQuery(); | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/customizing-search-results-in-sharepoint |
2eb1e60c32f6-5 | foreach (var result in results.Value[0].ResultRows)
{
Console.WriteLine(result["Title"]);
}
}
Example: group by Category and Product
First, group the items based on both Category and Product . Then, show each unique combination.
Syntax
CollapseSpecification="Category,Product:1"
This should... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/customizing-search-results-in-sharepoint |
2eb1e60c32f6-6 | Trim duplicate search results using the TrimDuplicatesOnProperty property
Use TrimDuplicatesOnProperty to specify whether to use a non-default managed property as the basis for duplicate trimming. The default value is the DocumentSignature managed property. The managed property must be of type Integer or Strin... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/customizing-search-results-in-sharepoint |
93a7a042ae9e-0 | Learn about search SharePoint Add-ins and how you can create your own search add-ins. The add-ins you create can be added to the SharePoint add-ins catalog so that they can be used in both on-premises deployment and Office 365. Search add-ins only work with data that is stored in the search index and not with the origi... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/search-add-ins-in-sharepoint |
93a7a042ae9e-1 | Provider hosted - Any web server hosting. The search add-in is hosted by any provider, outside of the customer's SharePoint server.
Search add-in development environment
To create a search add-in, use following environment:
Microsoft Visual Studio 2012 or Microsoft Visual Studio 2013 or Visual Studio 20... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/search-add-ins-in-sharepoint |
93a7a042ae9e-2 | keywordQuery.QueryText = "*";
SearchExecutor searchExecutor = new SearchExecutor(clientContext);
ClientResult<ResultTableCollection> results =
searchExecutor.ExecuteQuery(keywordQuery);
clientContext.ExecuteQuery();
}
JavaScript Object Model (JSOM)
var keywordQuery = new
Microsoft.SharePoint.... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/search-add-ins-in-sharepoint |
93a7a042ae9e-3 | An SharePoint Add-in has its own identity and is associated with a security principal, called an add-in principal. Like users and groups, an add-in principal has certain permissions and rights. The add-in principal has full control rights to the add-in web, so it only needs to request permissions to SharePoint resource... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/search-add-ins-in-sharepoint |
63744e8fe705-0 | If you have a large number of search results (for example, over 50,000) to page through in a query, it is recommended to use the approach explained in this article instead of the approach of StartRow . This approach uses sorting on [docid] in ascending order and uses a query restriction on the IndexDocId value wit... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/pagination-for-large-result-sets |
63744e8fe705-1 | For Page 2, use the following query, where you need to continue using sortlist on DocId in ascending order, but also add an IndexDocId restriction:
GET http://{site_url}/_api/search/query?querytext='sharepoint indexdocid>10'&sortlist='[docid]:ascending'
Let's say the DocId value of the last entry in the ... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/pagination-for-large-result-sets |
6ed87e2f9864-0 | Learn how you can use the Search REST service from your client and mobile applications to retrieve query suggestions from Search in SharePoint.
Query suggestions, also known as search suggestions, are phrases that users have already searched for and that are displayed or "suggested" to them as they type their queries. ... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/retrieving-query-suggestions-using-the-search-rest-service |
6ed87e2f9864-1 | Sample GET request
http:// server /_api/search/suggest?querytext='sharepoint'&inumberofquerysuggestions=3
iNumberOfResultSuggestions
The number of personal results to retrieve. Must be greater than zero (0). The default value is 5.
Sample GET request
http:// server /_api/search/suggest?querytext='sharepoint... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/retrieving-query-suggestions-using-the-search-rest-service |
6ed87e2f9864-2 | EnableStemming
A Boolean value that specifies whether stemming is enabled. true to enable stemming; otherwise, false . The default value is true .
Sample GET request
http:// server /_api/search/suggest?querytext='sharepoint'&enablestemming=false
ShowPeopleNameSuggestions
A Boolean value that specifies wh... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/retrieving-query-suggestions-using-the-search-rest-service |
30bb5a4dcabc-0 | Learn about the query APIs available in SharePoint that enable you to add search functionality to custom solutions and applications.
SharePoint Query APIs
Search in SharePoint provides several query APIs, giving you lots of ways to access search results, so that you can return search results in a variety of custom ... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/using-the-sharepoint-search-query-apis |
30bb5a4dcabc-1 | As a best practice in SharePoint development, use client APIs when you can. Client APIs include the .NET, Silverlight, Phone, and JavaScript client object models, and the REST service. For more information about the APIs in SharePoint and when to use them, see Choose the right API set in SharePoint .
Query using th... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/using-the-sharepoint-search-query-apis |
30bb5a4dcabc-2 | Query using the JavaScript client object model
For the JavaScript CSOM, get a ClientContext instance, and then use the object model in the SP.Search.js file.
Here's a basic example.
var clientContext = new SP.ClientContext("<serverRelativeUrl>");
var contextSite = clientContext.get_site();
var keywordQuery = n... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/using-the-sharepoint-search-query-apis |
30bb5a4dcabc-3 | See SharePoint Search REST API overview and Retrieving query suggestions using the Search REST service for more information.
Query using the .NET server object model
Applications that use the server object model must run directly on a server that is running SharePoint. The search Query server object model resid... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/using-the-sharepoint-search-query-apis |
2decf977dbff-0 | Learn about constructing complex search queries for Search in SharePoint using the FAST Query Language (FQL). This reference describes the elements of an FQL query and how to use property specifications, token expressions, and operators in your FQL queries.
Introduction to FQL and query language subexpressions and ex... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference |
2decf977dbff-1 | The length of FAST Query Language queries is limited to 2,048 characters.
Property specification in FQL
A property specification limits the scope of the affected expression to specific regions of the indexed content. Such a region can be identified by a full-text index or a managed property.
Managed properties of... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference |
2decf977dbff-2 | title:"to be or not to be"
An operator, for example, the STRING operator, as follows:
title:string("to be or not to be")
In this case the property specification applies to the complete operator expression.
Examples
Each of the following expressions matches items that have both "much" and "nothing" i... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference |
2decf977dbff-3 | title:string("much nothing", mode="and")
Token expressions in FQL
Token expressions are words, phrases, or numeric values that are matched against the index.
A text token expression can be a single word or a phrase enclosed in double quotation marks.
A numeric token expression can be a single value or a value ... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference |
2decf977dbff-4 | The following ISO 8601-compatible datetime formats are supported in queries:
YYYY-MM-DD
YYYY-MM-DDThh:mm:ss
YYYY-MM-DDThh:mm:ssZ
YYYY-MM-DDThh:mm:ssfrZ
In these datetime formats:
YYYY specifies a four-digit year.
Note
Only four-digit years are supported.
MM specifies a two-digit mont... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference |
2decf977dbff-5 | The following words are reserved within FQL.
and, or, any, andnot, count, decimal, rank, near, onear, int, in32, int64, float, double, datetime, max, min, range, phrase, scope, filter, not, string, starts-with, ends-with, equals, words, xrank.
If you want to express any of these words as terms in a query expression... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference |
2decf977dbff-6 | [property-spec:]operator(operand [,operand]* [, parameter="value"]*)
In the syntax:
property-spec is an optional property specification followed by the "in" operator.
operator is a keyword that specifies an operation to perform.
operand is a term expression or another operator.
parameter is the name of ... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference |
2decf977dbff-7 | Relevance
Enables you to impact the relevance evaluation of a query.
XRANK and FILTER
Table 4 provides a list of the supported operators.
Table 4. FQL supported operators
Operator
Description
Type
AND
Returns only items that match all AND operands.
Boolean
ANDNOT
Retu... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference |
2decf977dbff-8 | Proximity
FILTER
Used to query metadata or other structured data.
Relevance
FLOAT
Provides explicit typing of numeric values. The explicit type conversion is optional and usually is not needed. The type of the query term is detected according to the type of the target numeric managed property.
Nume... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference |
2decf977dbff-9 | Numeric
STARTS-WITH
Specifies that a word or phrase must appear in the start of a managed property.
Proximity
STRING
Define a Boolean matching condition to a text string.
String
XRANK
Enables you to boost the dynamic rank of items based on certain term occurrences without changing which item... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference |
2decf977dbff-10 | andnot(dog, beagle, chihuahua)
ANY
Note
In SharePoint, the ANY operator is deprecated. Use the OR operator instead.
Similar to the OR operator except that the dynamic rank (the relevance score in the result set) is affected by neither the number of operands that match nor the distance between the term... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference |
2decf977dbff-11 | Description
From
<numeric_value>
The value of the from parameter must be a positive integer that specifies the minimum number of times that the specified operand must be matched. If the from parameter is not specified, no lower limit will exist.
to
<numeric_value>
The value of the to para... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference |
2decf977dbff-12 | DATETIME
Provides explicit typing of date/time numeric values. The operand is a date/time string formatted according to the syntax specified in Token expressions in FQL .
The explicit type conversion is optional and usually is not needed. The type of the query term is detected according to the type of the target n... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference |
2decf977dbff-13 | author:ends-with("adam jones")
Remarks
Boundary matching can be applied to all the text of the managed property, or to individual strings within a managed property that contains a list of string values, for example, a list of names. In this case, you may want to match the exact content of each string, and to avoid ... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference |
2decf977dbff-14 | Tip:
If you use the STRING operator inside a FILTER expression, by default, linguistics is disabled. You can enable linguistics processing within each STRING expression inside FILTER by using the operand linguistics="ON" .
Syntax
filter(<any valid FQL operator expression>)
Parameters
Not applicable.... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference |
2decf977dbff-15 | The explicit type conversion is optional and usually is not needed. The type of the query term is detected according to the type of the target numeric managed property.
Syntax
float(<floating point value>)
Parameters
Not applicable.
INT
Provides explicit typing of integer values. The operand is an integer v... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference |
2decf977dbff-16 | Any number of terms can be combined with the NEAR operators.
NEAR operands may be single terms, phrases, or Boolean OR or ANY operator expressions. Wildcards are accepted.
If multiple operands of the NEAR operator match the same indexed token, they are considered near one another.
Syntax
near(arg, arg ... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference |
2decf977dbff-17 | No
The picture shows a cat with a dog, a fox, and a wolf.
The following expression matches all the strings in the previous table.
near(cat, dog, fox, wolf, N=5)
Remarks
NEAR/ONEAR term distance considerations
N indicates the maximum number of words that are allowed to appear between the query terms w... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference |
2decf977dbff-18 | NEAR applied to phrases will also match overlapping phrases in the text.
If a token in the matching segment matches more than one operand to the NEAR or ONEAR expression, the query may match even if the number of nonmatching tokens within the matching segment exceeds the value of ' N ' in the NEAR or ONEAR ... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference |
2decf977dbff-19 | Examples
Example 1. The following expression matches all the occurrences of the words "cat", "dog", "fox", and "wolf" that appears in order, if no more than four indexed tokens separate them.
onear(cat, dog, fox, wolf)
The following table contains examples of managed property string values, and states whether th... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference |
2decf977dbff-20 | Parameters
Not applicable.
Examples
The following expression matches all the items for which the default full-text index contains either "cat" or "dog". If an item's default full-text index contains both "cat" and "dog", it will match and have a higher dynamic rank than it would if it contained only one of the to... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference |
2decf977dbff-21 | to
**LE\
LT**
Optional parameter that indicates the open or close end interval. Valid values: LE Less than or equal to the end value (<= end of interval). LT Less than the end value (< end of interval). Default: LT
Examples
The following expression matches a description property starting wit... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference |
2decf977dbff-22 | [, wildcard=<on|off>])
Parameters
Parameter
Value
Description
mode
<mode>
The mode parameter specifies how to evaluate the <text string> value. The following list shows valid values. "PHRASE" - phrase(term [,term]*) Mode Equivalent operator expression "PHRASE" phrase(term [,term... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference |
2decf977dbff-23 | linguistics
on|off
Disables/enables all linguistics features for the string (lemmatization, synonyms, spelling checking) if they are enabled for the query. You can use this parameter to switch off linguistic processing for a given term or string while you still want the term or string to contribute to ranking. De... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference |
2decf977dbff-24 | string("coyote saguaro", mode="or")or(coyote, saguaro)
Example 4. The following string token expression and ANY operator expression return the same results.
string("coyote saguaro", mode="any")any(coyote, saguaro)
Example 5. The following string token expression and NEAR operator expression return the same ... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference |
2decf977dbff-25 | Remarks
Relevance weight for dynamic ranking
The main effect of the weight parameter is for OR queries. It can also have some effect on AND queries. The dynamic rank algorithm can imply that different terms give different rank contribution depending on where in the item the term match occurs.
The difference... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference |
2decf977dbff-26 | Handling strings with special characters
Special characters such as comma (","), semicolon (";"), colon (":"), period ("."), minus ("-"), underline ("_"), or forward slash ("/") are treated as white space inside a string expression enclosed in double quotation marks. This is related to the tokenization process. These... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference |
2decf977dbff-27 | XRANK
Boosts the dynamic rank of items based on certain term occurrences within the match expression , without changing which items match the query. An XRANK expression consists of one component that must be matched, the match expression , and one or more components that contribute only to dynamic ranking, the r... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference |
2decf977dbff-28 | Nb
<float_value>
The nb parameter refers to normalized boost. This parameter specifies the factor that is multiplied with the product of the variance and average score of the rank values of the results set. f in the XRANK formula.
Typically normalized boost, nb , is the only parameter that is modified... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference |
2decf977dbff-29 | pb
<float_value>
The pb parameter refers to percentage boost. This factor is multiplied with the item's own rank compared to the minimum value in the corpus. Default: 0 . c in the XRANK formula.
Examples
Example 1. The following expression matches items for which the default full-text index contai... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference |
2decf977dbff-30 | xrank(xrank(animals, dogs, cb=100), cats, cb=200)
See also
Building search queries in SharePoint | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference |
b71a1f16374e-0 | Learn to construct KQL queries for Search in SharePoint. This syntax reference describes KQL query elements and how to use property restrictions and operators in KQL queries.
Elements of a KQL query
A KQL query consists of one or more of the following elements:
Free text-keywords—words or phrases
Proper... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference |
b71a1f16374e-1 | A word (includes one or more characters without spaces or punctuation)
A phrase (includes two or more words together, separated by spaces; however, the words must be enclosed in double quotation marks)
To construct complex queries, you can combine multiple free-text expressions with KQL query operators. I... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference |
b71a1f16374e-2 | Property restriction queries in KQL
Using KQL, you can construct queries that use property restrictions to narrow the focus of the query to match only results based on a specified condition.
Specifying property restrictions
A basic property restriction consists of the following:
<Property Name><Property Ope... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference |
b71a1f16374e-3 | The managed property must be Queryable so that you can search for that managed property in a document. In addition, the managed property may be Retrievable for the managed property to be retrieved. However, the managed property doesn't have to be Retrievable to carry out property searches.
Property operators t... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference |
b71a1f16374e-4 | DateTime Integer Decimal Double
>=
Returns search results where the property value is greater than or equal to the value specified in the property restriction.
DateTime Integer Decimal Double
<>
Returns search results where the property value does not equal the ... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference |
b71a1f16374e-5 | Property values in the full-text index
Property values are stored in the full-text index when the FullTextQueriable property is set to true for a managed property. You can configure this only for string properties. Property values that are specified in the query are matched against individual terms that are store... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference |
b71a1f16374e-6 | Date or time values for properties
KQL provides the datetime data type for date and time.The following ISO 8601-compatible datetime formats are supported in queries:
YYYY-MM-DD
YYYY-MM-DDThh:mm:ss
YYYY-MM-DDThh:mm:ssZ
YYYY-MM-DDThh:mm:ssfrZ
In these datetime formats:
YYYY specifies a fo... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference |
b71a1f16374e-7 | Matches would include items modified today:
LastModifiedTime=today
Matches would include items from the beginning of the current year until the end of the current year:
LastModifiedTime="this year"
Matches would include items from January 1st of 2019 until April 26th of 2019:
LastModifiedTime>=2019-01-01 AND ... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference |
b71a1f16374e-8 | When you use multiple instances of the same property restriction, matches are based on the union of the property restrictions in the KQL query. Matches would include content items authored by John Smith or Jane Smith, as follows:
author:"John Smith" author:"Jane Smith"
This functionally is the same as using the OR... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference |
b71a1f16374e-9 | title:(Advanced XRANK(cb=1) Search XRANK(cb=1) Query)
Note
When using () to group an expression on a property query the number of matches might increase as individual query words are lemmatized, which they are not otherwise. Phrases in quotes are not lemmatized.
title:page return matches with the exact term ... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference |
b71a1f16374e-10 | Operator
Description
AND
Returns search results that include all of the free text expressions, or property restrictions specified with the AND operator. You must specify a valid free text expression and/or a valid property restriction both preceding and following the AND operator. This is the same a... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference |
b71a1f16374e-11 | The parameter n can be specified as n=v where v represents the value, or shortened to only v ; such as NEAR(4) where v is 4.
For example:
"acquisition" NEAR "debt"
This query matches items where the terms "acquisition" and "debt" appear within the same item, where an instance of "acquisition" is foll... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference |
b71a1f16374e-12 | <expression> ONEAR(n=4) <expression>
The parameter n can be specified as n=v where v represents the value, or shortened to only v ; such as ONEAR(4) where v is 4.
For example, the following query matches items where the terms "acquisition" and "debt" appear within the same item, where an instance of "a... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference |
b71a1f16374e-13 | WORDS(TV, Television)
TV OR Television
These queries differ in how the results are ranked. When you use the WORDS operator, the terms "TV" and "television" are treated as synonyms instead of separate terms. Therefore, instances of either term are ranked as if they were the same term. For example, a content item t... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference |
b71a1f16374e-14 | Dynamic ranking operator
You use the XRANK operator to boost the dynamic rank of items based on certain term occurrences within the match expression , without changing which items match the query. An XRANK expression contains one component that must be matched, the match expression , and one or more components ... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference |
b71a1f16374e-15 | Table 7 lists the basic parameters available for the XRANK operator.
Table 7. XRANK operator parameters
Parameter
Value
Description
n
<integer_value>
Specifies the number of results to compute statistics from. This parameter does not affect the number of results that the dynamic ran... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference |
b71a1f16374e-16 | avgb
<float_value>
The avgb parameter refers to average boost. Default: 0 . d in the XRANK formula.
rb
<float_value>
The rb parameter refers to range boost. This factor is multiplied with the range of rank values in the results set. Default: 0 . b in the XRANK formula.
... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference |
b71a1f16374e-17 | Example 4. The following expression matches all items containing the term "animals", and boosts dynamic rank as follows:
Dynamic rank of items that contain the term "dogs" is boosted by 100 points.
Dynamic rank of items that contain the term "cats" is boosted by 200 points.
Dynamic rank of items that conta... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference |
cfeb3521db88-0 | Learn about trigger expressions you can use to create trigger conditions to configure the web service callout in SharePoint.
Elements used in the syntax of trigger expressions
Elements that can be used in a trigger expression are:
Operators
Managed property value access
Literals
Functions
Co... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/trigger-expressions-syntax-in-sharepoint |
cfeb3521db88-1 | Literals in trigger expressions
The following data types can be expressed as literals: String , Int32 , Double , and Boolean .
Functions in trigger expressions
A wide collection of functions ranging from mathematical functions such as Floor to functions for use with particular data types, such as ... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/trigger-expressions-syntax-in-sharepoint |
cfeb3521db88-2 | bool? IsDate(string input, string format)
object IfThenElse(bool? condition, object thenBranch, object elseBranch)
decimal? Ceiling(decimal? number)
decimal? Floor(decimal? number)
double? Ceiling(double? number)
double? Floor(double? number)
double? Sqrt(double? number)
bool? Contains(strin... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/trigger-expressions-syntax-in-sharepoint |
cfeb3521db88-3 | string Trim(string value)
Constants in trigger expressions
There are two sets of constants that can be used with specific functions: DatePartConstant and RegexOptionConstant . Table 2 lists the two examples of these constants and where you can use them.
Table 2. Trigger expression constants and usage i... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/trigger-expressions-syntax-in-sharepoint |
0d53c7353ee0-0 | Learn how to implement the Content Enrichment web service in SharePoint to modify the managed properties of crawled items before they are indexed.
Search in SharePoint enables developers to add a custom step to content processing to modify the managed properties of crawled items before they are indexed. This custom s... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-use-the-content-enrichment-web-service-callout-for-sharepoint-server |
0d53c7353ee0-1 | A DebugMode , that enables rapid prototyping of the external web service. When enabled, the external web service receives all available managed properties. In DebugMode , the trigger condition is ignored and any managed properties output by the web service are also ignored.
A SendRawData switch that sends the raw... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-use-the-content-enrichment-web-service-callout-for-sharepoint-server |
0d53c7353ee0-2 | To add references to the content enrichment service project
On the Project menu, choose Add Reference .
Choose Browse and locate the Microsoft.Office.Server.Search.ContentProcessingEnrichment assembly in your SharePoint installation folder under Installation Path\Microsoft Office Servers\15.0\Search\App... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-use-the-content-enrichment-web-service-callout-for-sharepoint-server |
0d53c7353ee0-3 | Type ContentProcessingEnrichmentService.svc , and then choose Add .
Delete the IContentProcessingEnrichmentService.cs interface that is created.
To modify the default code in the ContentProcessingEnrichmentService class
Replace the existing using directives with the following using directives at the b... | https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-use-the-content-enrichment-web-service-callout-for-sharepoint-server |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.