Explicit set __NodeId
property in index
#13956
bjarnef
started this conversation in
Features and ideas
Replies: 1 comment 1 reply
-
@Zeegaan @kjac do you have any idea why this happens? I would have expected it just just Is there any reason it always set |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It seems Umbraco implementation the
__NodeId
property is set based onid
value passed intoValueSet
ctor, which is confusing in a custom index.E.g.
when we also included
Umbraco.Cms.Infrastructure.Examine.UmbracoExamineFieldNames.ItemIdFieldName
(__NodeId
) the indexed document shows this, which seems to beid
combined with__NodeId
:using this instead shows only this id:
However still a bit confusing since
__NodeId
property isn't set directly in value set builder.We can index this instead (or where value of constamt
Constants.Examine.Course.FieldNames.NodeId
isid
orcourseId
).It seems Umbraco use
id
in the content valueset builder:Umbraco-CMS/src/Umbraco.Infrastructure/Examine/ContentValueSetBuilder.cs
Line 80 in 33adbf4
Not sure if some logic by default set
__NodeTypeAlias
and__NodeId
even when it is a custom implementation ofIValueSetBuilder
.Beta Was this translation helpful? Give feedback.
All reactions