-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4229 from microsoft-search/develop
v4.16
- Loading branch information
Showing
67 changed files
with
715 additions
and
585 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
site/* | ||
site/* | ||
|
||
# Mac files | ||
.DS_Store |
Binary file added
BIN
+10.4 KB
...erm-store-values-with-pnp-search-results/Managed-Properties-RefinableString.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+20.5 KB
...al-term-store-values-with-pnp-search-results/add-pnp-search-results-webpart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+53.7 KB
...gual-term-store-values-with-pnp-search-results/create-a-sharepoint-term-set.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+28.7 KB
...ngual-term-store-values-with-pnp-search-results/document-library-in-english.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+30.8 KB
...ingual-term-store-values-with-pnp-search-results/document-library-in-german.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.71 KB
...-multilingual-term-store-values-with-pnp-search-results/enable-localization.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+17.9 KB
...y-multilingual-term-store-values-with-pnp-search-results/results-in-english.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+16.8 KB
...ay-multilingual-term-store-values-with-pnp-search-results/results-in-german.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+69.4 KB
...gual-term-store-values-with-pnp-search-results/results-webpart-confguration.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+17.9 KB
...erm-store-values-with-pnp-search-results/search-results-without-translation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+28.1 KB
...gual-term-store-values-with-pnp-search-results/site-column-managed-metadata.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+22.6 KB
...ues-with-pnp-search-results/webpart-configuration-manage-columns-ows_taxid_.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+21.7 KB
...m-store-values-with-pnp-search-results/webpart-configuration-manage-columns.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
65 changes: 65 additions & 0 deletions
65
docs/scenarios/display-multilingual-term-store-values-with-pnp-search-results.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# Display Multilingual term store values with PnP Search Results | ||
|
||
!!! note | ||
The PnP Modern Search Web Parts must be deployed to your App Catalog and activated on your site. See the [installation documentation](../installation.md) for details. | ||
|
||
This scenario describes how term store values can be displayed in multiple languages in the PnP Modern Search. | ||
|
||
## Prepare the scenario | ||
I use the colours as example in my case, it's simple to understand in different languages. You need also 2 different users with different language settings for a quicklier testing. | ||
|
||
Create a SharePoint Term store and translate the terms into another language, i use english as a default language and german as work language. Translate every term within the term set. | ||
 | ||
|
||
Create a SharePoint site column with type Managed Metadata and use the newly created term set. | ||
 | ||
|
||
Add the new site column to a SharePoint document library and tag your documents. | ||
|
||
When you check the library with your 2 different users, you can see SharePoint will be translate the multilingual term sets in the language from the user, where is logged in. SharePoint will be translate all default terms also in the other language, but not columns or views, but you can translate this terms manually. | ||
|
||
Library in english: | ||
|
||
 | ||
|
||
Library in german: | ||
|
||
 | ||
|
||
As prepare for our search configuration, map the new crawled property to RefinableStringXX Managed Properties, please attention, map both Crawled properties, OWS_ and the OWS_TAXID_, to Managed Properties. | ||
 | ||
|
||
Now, we are ready to jump into our search scenario, let's go 🚀 | ||
|
||
## Add PnP Search Results WebPart to a page | ||
Add the PnP Search Results WebPart to a new or existing site page. See the scenario how you can [create a simple search page](create-simple-search-page.md) | ||
 | ||
|
||
## Configure Search Results WebPart | ||
Configure the new PnP Results WebPart with a SharePoint Search source and as simply as possible, with a path-query and add the new Managed Properties as Selected properties in the WebPart configuration. | ||
 | ||
|
||
Add the new Managed Property, with the OWS_, as Managed columns into the results WebPart and save the page. | ||
 | ||
|
||
Check the page with both users and different language settings and you can see, the terms will NOT translate into the languages, we can see the default language as column values. | ||
|
||
 | ||
|
||
## Configure multilingual columns | ||
Edit the page and go back to Manage columns, activate the Use Handlebar expression and insert {{AutoRefinableString127}} , the second property mapped to the crawled property OWS_TAXID_, as expression. | ||
 | ||
|
||
Enable localization on the first page from the PnP Search Results configuration. | ||
 | ||
|
||
## Testing Search configuration | ||
After saving the configuration, now you can see the translated values in the PnP Search Results WebPart in the different languages. | ||
|
||
### Results in english | ||
 | ||
|
||
### Results in german | ||
 | ||
|
||
*A little multilingual disclaimer: The search columns or SharePoint WebPart titles are not multilingual, but you can use SharePoint Multilingual Pages to configure more in a different language. See more in the Microsoft article: [Create multilingual SharePoint sites, pages, and news](https://support.microsoft.com/en-us/office/create-multilingual-sharepoint-sites-pages-and-news-2bb7d610-5453-41c6-a0e8-6f40b3ed750c?WT.mc_id=DX-MVP-5004845) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.