You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/general-development/user-segmentation-in-sharepoint.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -88,7 +88,7 @@ You can create a term set programmatically by using the types exposed via [Micr
88
88
89
89
90
90
91
-
Each term you add to your term set receives a unique identifier. This identifier is the key to making the [ContentBySearchWebPart](https://msdn.microsoft.com/library/Microsoft.Office.Server.Search.WebControls.ContentBySearchWebPart.aspx) aware of your user segments.
91
+
Each term you add to your term set receives a unique identifier. This identifier is the key to making the [ContentBySearchWebPart](https://docs.microsoft.com/en-us/sharepoint/dev/general-development/content-search-web-part-in-sharepoint) aware of your user segments.
In Visual Studio 2012, create a custom web part by using the Visual web parts template from the SharePoint category. Your custom web part must inherit from the [ContentBySearchWebPart](https://msdn.microsoft.com/en-us/library/office/microsoft.office.server.search.webcontrols.contentbysearchwebpart.aspx) object.
138
+
In Visual Studio 2012, create a custom web part by using the Visual web parts template from the SharePoint category. Your custom web part must inherit from the [ContentBySearchWebPart](https://docs.microsoft.com/en-us/sharepoint/dev/general-development/content-search-web-part-in-sharepoint) object.
139
139
140
140
> [!NOTE]
141
141
> This article assumes that you have experience with developing web parts in SharePoint. For more information on developing web parts, refer to [Building Block: web parts](http://msdn.microsoft.com/en-us/library/ee535520%28v=office.14%29.aspx)
@@ -147,14 +147,14 @@ In Visual Studio 2012, create a custom web part by using the Visual web parts te
147
147
## Configure a custom web part with user segmentation logic
In your custom web part, you can re-implement either the [OnLoad()](https://msdn.microsoft.com/library/Microsoft.Office.Server.Search.WebControls.ContentBySearchWebPart.OnLoad.aspx) method or the [OnInit()](https://msdn.microsoft.com/library/Microsoft.Office.Server.Search.WebControls.ContentBySearchWebPart.OnInit.aspx) method to carry out your custom logic. Both these methods are useful to set or customize properties of the [ContentBySearchWebPart](https://msdn.microsoft.com/en-us/library/office/microsoft.office.server.search.webcontrols.contentbysearchwebpart.aspx) object.
150
+
In your custom web part, you can re-implement either the `OnLoad()` method or the `OnInit()` method to carry out your custom logic. Both these methods are useful to set or customize properties of the [ContentBySearchWebPart](https://docs.microsoft.com/en-us/sharepoint/dev/general-development/content-search-web-part-in-sharepoint) object.
151
151
152
152
153
153
154
154
155
155
### Example 1: Add Male and Female user segments to your SharePoint site
156
156
157
-
To add **Male** and **Female** user segments, you can re-implement the [OnLoad()](https://msdn.microsoft.com/library/Microsoft.Office.Server.Search.WebControls.ContentBySearchWebPart.OnLoad.aspx) method as shown in the following code.
157
+
To add **Male** and **Female** user segments, you can re-implement the `OnLoad()` method as shown in the following code.
158
158
159
159
160
160
@@ -291,7 +291,7 @@ A query rule transforms queries to improve the relevance of search results by re
291
291
292
292
293
293
294
-
Whenimplementingusersegmentation, youusequeryrulestodefineconditionsandactionsforthedefinedusersegments. Whenanend-userispartofaparticularusersegment, thequeryrulewillactivateandthe [ContentBySearchWebPart](https://msdn.microsoft.com/library/Microsoft.Office.Server.Search.WebConrols.ContentBySearchWebPart.aspx) will display content that is tailored for that particular user segment.
294
+
Whenimplementingusersegmentation, youusequeryrulestodefineconditionsandactionsforthedefinedusersegments. Whenanend-userispartofaparticularusersegment, thequeryrulewillactivateandthe [ContentBySearchWebPart](https://docs.microsoft.com/en-us/sharepoint/dev/general-development/content-search-web-part-in-sharepoint) will display content that is tailored for that particular user segment.
295
295
296
296
297
297
@@ -324,7 +324,7 @@ When implementing user segmentation, you use query rules to define conditions an
324
324
325
325
8. Under **QueryConditions**, choose**RemoveCondition**.
326
326
327
-
Thisspecifiesthatthequeryconfiguredinthe [ContentBySearchWebPart](https://msdn.microsoft.com/library/Microsoft.Office.Server.Search.WebConrols.ContentBySearchWebPart.aspx) will act as the query condition.
327
+
Thisspecifiesthatthequeryconfiguredinthe [ContentBySearchWebPart](https://docs.microsoft.com/en-us/sharepoint/dev/general-development/content-search-web-part-in-sharepoint) will act as the query condition.
0 commit comments