Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUGFIX: Keep fulltext index of hidden nodes as those may be searched in backend use cases #388

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mficzel
Copy link
Member

@mficzel mficzel commented Jan 7, 2022

The fulltext fields for hidden nodes previously were calculated but then not stored. This makes sense for removed nodes but hidden nodes exist and may be found by users that have the correct permissions.

…in backend use cases

The fulltext fields for hidden nodes previously were calculated but then not stored. This makes sense for removed nodes but hidden nodes
exist and may be found by users that have the correct permissions.
@mficzel mficzel marked this pull request as ready for review January 7, 2022 17:01
@mficzel
Copy link
Member Author

mficzel commented Jan 7, 2022

This will probably need a rebase when accepted as lower branches are affected aswell.

Copy link
Contributor

@dfeyer dfeyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sense

@@ -126,7 +126,7 @@ public function fulltext(NodeInterface $node, array $fulltextIndexOfNode, string
ctx._source.neos_fulltext_parts = new HashMap();
}

if (params.nodeIsRemoved || params.nodeIsHidden || params.fulltext.size() == 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If content from hidden nodes are added to the fulltext_parts, I assume they are automatically merged to the parent document where it is impossible to distinguish between content from hidden and not hidden node and the document would also be found by the originally hidden content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants