14th March 2017 at 3:49 pm #8092
I’ve had a look at this and can report the following:
Adding BEFORE and AFTER options to a single date is easy. I’ve done that now, so it will be in the next release. Looks like this:
But this needs to be used with caution. Searching “BEFORE” and “1957” might get everyone in your tree back as far as Adam and Eve!!
Adding both BEFORE and AFTER for the same event ( thats what I understand “I’d like BEFORE/AFTER to be two separate options” means) is not easy with the current code. Adding complicated code on top of complicated code is (IMHO) asking for trouble. It’s what ends up breaking things. It would require either adding a second date field for each event, or as you suggest making the search field accept boolean attributes. That’s not a bad idea – but impossible with the current code which is totally GEDCOM focused. A complete re-write of the advanced search will be required. I will put that on the “wish list” as it’s a good plan, but I have no idea when it might be possible. Certainly not in the near future.
In the process of looking at this I discovered (remember – I never use advanced search) that you cannot search using two (or more) of the date fields. For example, I searched for people with a birth in exactly 1922 and a death in exactly 1941. I know I have at least 1, but I got no result. I will investigate if that is possible as it would slightly help this topic, as you could search perhaps for births BEFORE 1939 and deaths after 1991 to answer Paul’s original issue. (Those dates are some of the parameters for inclusion in the UK 1939 register).
I was also reminded by looking at the code, and hope this might help someone, that it also already allows for “Exact” dates that are in the GEDCOM format BET xxxx AND yyyy, or FROM xxxx TO yyyyNigel
My personal kiwitrees site is www.our-families.info
You must be logged in to access attached files.