2

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?

2

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}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.