i have a site in which i have a container node menu.
in that node i have several pages with different page types.
but when i want to do search i dont want to display results from container node(from its childrens pages also).
I would note the id and then on the publishing or saving event, check it and remove it. There is an interface on search that the object implements (Isearchable?). Not sure what it is off hand but there is a property on that interface that is "AllowChildrenIndexing" or something along those lines. Set that to false.