Topic: [Bug/Pending] -parent:123 behaves like ischild:false

Posted under Site Bug Reports & Feature Requests

Trying to remove a parent post removes all child posts

This is effecting the search engine

Previouslly this would just remove posts with the subjected parent from the engine, useful for creating child posts without double tagging and sorting posts

Curently all posts that are a child post on e621 are being removed from the search engine

Noticed earlier today December 05/18

The bug can be replicated
i.e. https://e621.net/post/index/1/-parent:1535574%20ischild:true
https://e621.net/post/index/1/-parent:1726254%20ischild:true

No error messages

Updated

According to the source, negating a parent id simply searches for posts that have no parent attached to them.

I can't find any indication that this was ever changed, but it does strike me as being the wrong behavior.

Updated by anonymous

KiraNoot said:
According to the source, negating a parent id simply searches for posts that have no parent attached to them.

I can't find any indication that this was ever changed, but it does strike me as being the wrong behavior.

The search method I have as examples provided is a method I have used when grouping images from an artist with parent posts. I don't know why it would stop working, but its acting like I added "-ischild:true" to the search engine. as it removes all images with a parent post.

Updated by anonymous

The code for this has not changed in 5+ years. parent metatags that are negated simply look for posts that have no parent attached to them. They don't take the post id provided into account at all when negated.

Updated by anonymous

KiraNoot said:
The code for this has not changed in 5+ years. parent metatags that are negated simply look for posts that have no parent attached to them. They don't take the post id provided into account at all when negated.

okay... but what is causing this?

Updated by anonymous

Versperus said:
okay... but what is causing this?

That's how the code is written and has operated for 5+ years. -parent:anythingthatisanumber looks for posts without a parent, ischild:true looks for posts that have a parent.

It's giving you the correct results because no posts can both not have a parent, and have a parent at the same time.

I agree, this isn't the expected result and I will look into making it work as it looks like it should. But I can't explain why this has worked for you in the past other than placebo effect.

Updated by anonymous

KiraNoot said:
That's how the code is written and has operated for 5+ years. -parent:anythingthatisanumber looks for posts without a parent, ischild:true looks for posts that have a parent.

It's giving you the correct results because no posts can both not have a parent, and have a parent at the same time.

I agree, this isn't the expected result and I will look into making it work as it looks like it should. But I can't explain why this has worked for you in the past other than placebo effect.

-parent:anynumber + ischild:true would just remove any post with said parent, where it currently it is removing every child post from e621

this spam artist is the best way I can describe this
https://e621.net/post/index/1/kevinsano%20-parent:1538036

If you remove the -parent:1539036 tag after you see the content, you will see that every single image that has a parent was removed from the search instead of just these four images which is what it should be doing

Updated by anonymous

Versperus said:
it currently it is removing every child post from e621

That's what kiranoot said. The actual behaviour of -parent:id is to ignore the id and search for posts that have no parent set (ie. posts that are not child posts)

Updated by anonymous

Fix pending deployment. The new logic is that a negated parent id searches explicitly exclude a specific parent id, and also returns posts that have no parent id set on them. When combined with other searches this should allow you to exclude only posts that are children of a specific post.

Updated by anonymous

KiraNoot said:
Fix pending deployment. The new logic is that a negated parent id searches explicitly exclude a specific parent id, and also returns posts that have no parent id set on them. When combined with other searches this should allow you to exclude only posts that are children of a specific post.

Thank you @KiraNoot

Updated by anonymous

  • 1