Selecting families with empty parents

Create a 2 custom filter for Families

  • Father missing (Invert RegEx for any Father ID)
  • Mother missing (Invert RegEx for any Mother ID)

Then a Families filter that finds both:

custom_filters.xml

<?xml version="1.0" encoding="utf-8"?>
<filters>
  <object type="Family">
    <filter name="Both parents missing" function="and" comment="Family container where siblings are known but parents are not.">
      <rule class="MatchesFilter" use_regex="False" use_case="False">
        <arg value="Father missing"/>
      </rule>
      <rule class="MatchesFilter" use_regex="False" use_case="False">
        <arg value="Mother missing"/>
      </rule>
    </filter>
    <filter name="Father missing" function="and" invert="1" comment="(Invert RegEx for any Father ID)">
      <rule class="FatherHasIdOf" use_regex="True" use_case="False">
        <arg value="(.|\s)*\S(.|\s)"/>
      </rule>
    </filter>
    <filter name="Mother missing" function="and" invert="1" comment="(Invert RegEx for any Mother ID)">
      <rule class="MotherHasIdOf" use_regex="True" use_case="False">
        <arg value="(.|\s)*\S(.|\s)"/>
      </rule>
    </filter>
  </object>
</filters>