When I search for something and click the Search button, I get a page that show's all the results and tells me "Found 9 matches in 6 entities. " That is all working great.

but then if I try to use the Replace button to replace the text with something else, the results from the Replacement page does not match up with the Search from before. In this case, it says "7 entities processed. "

I have found this difference to be the case with many things I search for and then replace.

Shouldn't the number replaced match up with the number found in the Search? Otherwise, it appears that something is broken.

(It would be nice if on the Replacement page there was a log that showed where the changes were made, similar to how the Search page shows its results.)

Comments

WebPhenom created an issue. See original summary.

aaron.ferris’s picture

Im noticing a similar behaviour that seems to be related to multiple children of a particular field.

Say for example I have a parent paragraph for a carousel, that has 8 cards (paragraphs). In those cards I have a similar string as the title for 2 of the cards.

Search will label 1 entity found, but replace will mark 2 entities as being processed.

I wonder if it's a mismatch when searching for child entities? The replace does work properly.

aaron.ferris’s picture

Something else that causes a discrepancy that ive noticed - nested paragraphs.

If the structure is Grandparent (node) > Parent (paragraph) > Child (paragraph) and the string searched for is in the child, that will return 1 result, but the replace will actually = 3 (as far as I can tell).

Logically that does sort of make sense, because when the child is saved, so must the parent and so must the grandparent. But it can be confusing to end users.

fizzgig’s picture

Is there any potential for a fix on this anytime soon? Is there an alternative module that does something similar?

smustgrave’s picture

Status: Active » Postponed (maintainer needs more info)
smustgrave’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)