How can I filter or show only one of the duplicates in the results when using Find-Item command? The Next CEO of Stack OverflowSitecore User Group April 2019 Meetup - Queen City, Manchester, NHCreate new language version for content branchSitecore Powershell Get-Rendering doesn't find any renderings from Context Menu, but works in ISESitecore Powershell script to find items that break inheritanceCan I update links retrieved with Get-ItemReference in powershell?Deleting an Item with a null TemplateShow-ListView called from action script display columns from parent Show-ListViewScript is not reading Workflow field on some item versionsNegate the criteria filter in Sitecore Powershell Find-Item call?One time delete of old versionsRemoving publication restrictions - publication targets
Could a dragon use its wings to swim?
Can I board the first leg of the flight without having final country's visa?
Spaces in which all closed sets are regular closed
It is correct to match light sources with the same color temperature?
Why is the US ranked as #45 in Press Freedom ratings, despite its extremely permissive free speech laws?
How do I fit a non linear curve?
Point distance program written without a framework
Can Sneak Attack be used when hitting with an improvised weapon?
Can I calculate next year's exemptions based on this year's refund/amount owed?
Is it correct to say moon starry nights?
Is it ok to trim down a tube patch?
Airplane gently rocking its wings during whole flight
Why do we say 'Un seul M' and not 'Une seule M' even though M is a "consonne"
Help/tips for a first time writer?
What difference does it make using sed with/without whitespaces?
Is French Guiana a (hard) EU border?
Why did early computer designers eschew integers?
Do I need to write [sic] when including a quotation with a number less than 10 that isn't written out?
Getting Stale Gas Out of a Gas Tank w/out Dropping the Tank
Help! I cannot understand this game’s notations!
"Eavesdropping" vs "Listen in on"
Is it professional to write unrelated content in an almost-empty email?
What are the unusually-enlarged wing sections on this P-38 Lightning?
Defamation due to breach of confidentiality
How can I filter or show only one of the duplicates in the results when using Find-Item command?
The Next CEO of Stack OverflowSitecore User Group April 2019 Meetup - Queen City, Manchester, NHCreate new language version for content branchSitecore Powershell Get-Rendering doesn't find any renderings from Context Menu, but works in ISESitecore Powershell script to find items that break inheritanceCan I update links retrieved with Get-ItemReference in powershell?Deleting an Item with a null TemplateShow-ListView called from action script display columns from parent Show-ListViewScript is not reading Workflow field on some item versionsNegate the criteria filter in Sitecore Powershell Find-Item call?One time delete of old versionsRemoving publication restrictions - publication targets
I used Find-Item
to get the items on my sitecore_master_index
. However, the results contains same ID
but with different languages. I have found out that this item has many language versions in the content tree.
How can I filter or show only one of the duplicates in the results?
powershell-extensions powershell
New contributor
add a comment |
I used Find-Item
to get the items on my sitecore_master_index
. However, the results contains same ID
but with different languages. I have found out that this item has many language versions in the content tree.
How can I filter or show only one of the duplicates in the results?
powershell-extensions powershell
New contributor
add a comment |
I used Find-Item
to get the items on my sitecore_master_index
. However, the results contains same ID
but with different languages. I have found out that this item has many language versions in the content tree.
How can I filter or show only one of the duplicates in the results?
powershell-extensions powershell
New contributor
I used Find-Item
to get the items on my sitecore_master_index
. However, the results contains same ID
but with different languages. I have found out that this item has many language versions in the content tree.
How can I filter or show only one of the duplicates in the results?
powershell-extensions powershell
powershell-extensions powershell
New contributor
New contributor
edited 2 days ago
Marek Musielak
11.3k11136
11.3k11136
New contributor
asked 2 days ago
eudaimonia_eudaimonia_
253
253
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You can add language en as parameter to your Find-Item
method .
In this way you show just items in English.
You will have something like:
Find-Item
-Index sitecore_master_index `
-Criteria @Filter = "Equals"; Field = "_templatename"; Value = "Template Field"; CaseSensitive = $true,
@Filter = "Equals"; Field = "_language"; Value = "en"; CaseSensitive = $true
add a comment |
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "664"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
eudaimonia_ is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f17780%2fhow-can-i-filter-or-show-only-one-of-the-duplicates-in-the-results-when-using-fi%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can add language en as parameter to your Find-Item
method .
In this way you show just items in English.
You will have something like:
Find-Item
-Index sitecore_master_index `
-Criteria @Filter = "Equals"; Field = "_templatename"; Value = "Template Field"; CaseSensitive = $true,
@Filter = "Equals"; Field = "_language"; Value = "en"; CaseSensitive = $true
add a comment |
You can add language en as parameter to your Find-Item
method .
In this way you show just items in English.
You will have something like:
Find-Item
-Index sitecore_master_index `
-Criteria @Filter = "Equals"; Field = "_templatename"; Value = "Template Field"; CaseSensitive = $true,
@Filter = "Equals"; Field = "_language"; Value = "en"; CaseSensitive = $true
add a comment |
You can add language en as parameter to your Find-Item
method .
In this way you show just items in English.
You will have something like:
Find-Item
-Index sitecore_master_index `
-Criteria @Filter = "Equals"; Field = "_templatename"; Value = "Template Field"; CaseSensitive = $true,
@Filter = "Equals"; Field = "_language"; Value = "en"; CaseSensitive = $true
You can add language en as parameter to your Find-Item
method .
In this way you show just items in English.
You will have something like:
Find-Item
-Index sitecore_master_index `
-Criteria @Filter = "Equals"; Field = "_templatename"; Value = "Template Field"; CaseSensitive = $true,
@Filter = "Equals"; Field = "_language"; Value = "en"; CaseSensitive = $true
edited 2 days ago
Marek Musielak
11.3k11136
11.3k11136
answered 2 days ago
Vlad IobagiuVlad Iobagiu
13.6k21034
13.6k21034
add a comment |
add a comment |
eudaimonia_ is a new contributor. Be nice, and check out our Code of Conduct.
eudaimonia_ is a new contributor. Be nice, and check out our Code of Conduct.
eudaimonia_ is a new contributor. Be nice, and check out our Code of Conduct.
eudaimonia_ is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Sitecore Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f17780%2fhow-can-i-filter-or-show-only-one-of-the-duplicates-in-the-results-when-using-fi%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown