#2300 [4098] Batch processing Search

v4.1.5
open
nobody
None
5
2008-11-17
2008-10-18
No

As mentioned in the open discussion I think this is a great addition to phpgedview.

I have used the search and replace a fair bit over the last couple of days.

One issue which is very strange is that it will not search on SIMPSON. I tried to shorten the search term and it just hangs on SIM or any thing longer (ie SIMP) It will search on SI. I have about 39 SIMPSONS in the data base so it should find them.

This is the only word that appears to be giving an issue

Discussion

  • Greg Roach

    Greg Roach - 2008-10-19

    Assuming you mean the batch update module, I wrote this code. I can't think of any reason why one piece of text should cause difficulties, other than case sensitive/insensitive matching issues.

    If it helps, I can search for simp/simpson/etc. quite happily on my site.

     
  • Warren Meads

    Warren Meads - 2008-10-19

    Yes the new Batch update module
    Perhaps it is falling on a certain record. The problem is I have 52 Simpsons. 33 Lower case and 19 uppercase. If I click the ignore case box then I get 2 of the lower case (I can not work out the order of selection) and then once it goes for the third one then this is when it freezes.

    To help me identify which record it is freezing on can you advise what the search sequence is.

    Thanks Warren

     
  • Warren Meads

    Warren Meads - 2008-10-20

    I can see the sort order now it is an alpha sort on the head "0" record so hopefully this will enable me to identify the record it is stalling on

     
  • Warren Meads

    Warren Meads - 2008-10-20

    I have now looked at the particular record that is causing the issue. I have pasted the gedcom record below. It is the note that is the problem. I deleted the note and it ran ok. Put the note back and it froze.

    0 @I11051@ INDI
    1 FAMS @F3660@
    1 _UID AC58234A08215504DD544E636FF59291C2BD
    1 NAME William /Simpson/
    1 SEX M
    1 BIRT
    2 DATE ABT 1820
    2 PLAC Markfield, Leicestershire, England
    2 SOUR @S190@
    1 DEAT
    2 DATE 28 OCT 1900
    2 PLAC 5 Back 25 Ashley St, Birmingham, Warwickshire, England
    2 SOUR @S190@
    1 CENS
    2 DATE 1881
    2 PLAC Newport Pl 3, Birmingham, Warwickshire, England
    2 SOUR @S190@
    1 BAPM
    2 DATE 28 APR 1835
    2 PLAC St Mary de Castro, Leicester, Leicestershire, England
    2 SOUR @S190@
    3 DATA
    4 TEXT Aged 7 ?
    1 CENS
    2 DATE 1841
    2 PLAC Eaton St, Leicester St Margaret, Leicester, Leicestershire, England
    2 SOUR @S190@
    1 CENS
    2 DATE 1851
    2 PLAC Well Street, Coventry, Warwickshire, England
    2 SOUR @S190@
    3 DATA
    4 TEXT boarding with Charles Surrin
    1 CENS
    2 DATE 1861
    2 PLAC Back of 262 Sherlock St, Birmingham, Warwickshire, England
    2 SOUR @S190@
    1 CENS
    2 DATE 1871
    2 PLAC 45 Bishop St, Birmingham, Warwickshire, England
    2 SOUR @S190@
    3 DATA
    4 TEXT lodger with Joseph Brookes
    1 CENS
    2 DATE 1891
    2 PLAC Ashley St Court 1 No. 10, Birmingham, Warwickshire, England
    2 SOUR @S190@
    1 CHAN
    2 DATE 20 OCT 2008
    3 TIME 13:02:37
    2 _PGVU wmeads001
    1 OCCU Bricklayer
    2 DATE 1881
    2 SOUR @S190@
    1 OCCU Bricklayer
    2 DATE 1851
    2 SOUR @S190@
    1 OCCU Bricklayer
    2 DATE 1861
    2 SOUR @S190@
    1 OCCU Bricklayer
    2 DATE 1871
    2 SOUR @S190@
    1 OCCU Bricklayer
    2 DATE 1891
    2 SOUR @S190@
    1 NOTE Is the following Mathew a brother?
    2 CONT
    2 CONT 1851:
    2 CONT Head: SIMPSON, Mathew Neighbors 262050
    2 CONT Name Relationship Mar Age Sex Occupation Birthplace
    2 CONT Mathew SIMPSON Head M 31 M Bricklayer ----Lec
    2 CONT Elizabeth SIMPSON Wife M 31 F Domestic Duties ----Lec
    2 CONT Robert SIMPSON Son - 4 M --- Birmm-War
    2 CONT Address: Snowhill 2 Court House 6, Birmingham
    2 CONT Census Place: Birmingham, Warwickshire, England
    2 CONT PRO Reference: HO/107/2057 Folio: 190 Page: 19 FHL Film: 0332117
    2 CONT
    2 CONT 1861:
    2 CONT Mathew Simpson Head M 41 Bricklayer Leicester
    2 CONT Elizabeth Simpson Wife M 41 Leicester
    2 CONT Robert Simpson Son U 14 Elastic Web maker Birmingham
    2 CONT Mary A. Simpson Daur U 6 Scholar Birmingham
    2 CONT Mathew Simpson Son U 1 Leicester, St Margarets
    2 CONT 123 Wharf St, Leicester
    2 CONT
    2 CONT 1871:
    2 CONT Matthew Simpson HeadM 51GrocerMarkfield, Leics
    2 CONT Elizabeth SimpsonWifeM51Hinckley, Leics
    2 CONT Mary AnnDaurU16Grocer AssistantBirmingham, Warwickshire
    2 CONT 7 Russell Sq, St Margaret, Leicester
    2 CONT
    2 CONT 1881:
    2 CONT Matthew SIMPSON Head M Male 61 Leicester, Leicester, Leicestershire, England Retired Grocer
    2 CONT Elizabeth SIMPSON Wife M Female 61 Leicester, Leicester, Leicestershire, England
    2 CONT
    2 CONT
    2 CONT Source Information:
    2 CONT Dwelling 53 Justice St
    2 CONT Census Place Belgrave, Leicester, Leicestershire, England
    2 CONT Family History Library Film 1341752
    2 CONT Public Records Office Reference RG11
    2 CONT Piece / Folio 3154 / 17
    2 CONT Page Number 26
    2 CONT
    2 CONT Robert SIMPSON Head M Male 34 Birmingham Licensed Victuall
    2 CONT Lucy Maria SIMPSON Wife M Female 34 Northampton, England Licensed Victualler
    2 CONT Herbert SIMPSON Son U Male 11 Leicester, Leicestershire, England Scholar
    2 CONT Elizbth. SIMPSON Daur Female 8 Leicester, Leicestershire, England Schol
    2 CONT Arthur SIMPSON Son Male 6 Leicester, Leicestershire, England Scholar
    2 CONT Frederick SIMPSON Son Male 4 Leicester, Leicestershire, England Scholar
    2 CONT Hannah CURTIS Serv U Female 21 Hallaton, Leicester, Leicestershire, England Domestic Serv
    2 CONT William PULLEN Boarder W Male 50 Leicester, Leicestershire, England Joiner
    2 CONT
    2 CONT
    2 CONT Source Information:
    2 CONT Dwelling No 7 Ch Gate "Windmill Inn"
    2 CONT Census Place Leicester St Margarets, Leicester, Leicestershire, England
    2 CONT Family History Library Film 1341757
    2 CONT Public Records Office Reference RG11
    2 CONT Piece / Folio 3172 / 21
    2 CONT Page Number 1

     
  • Greg Roach

    Greg Roach - 2008-10-24

    I've done some investigation on this.

    To generate the changes "preview", I use the "longest-common-subsequence" algoririthm to determine the smallest number of changes between the before/after text. This is a recursive algorithm.

    Having lots of matches, spaced out through the text, is probably the worst-case for this algorithm.

    It is simply timing-out.

    I guess the only thing I can do is count the number of changes, and if it is more than, say, 10, don't attempt the preview. Not ideal.

     
  • Greg Roach

    Greg Roach - 2008-11-17
    • milestone: --> v4.1.5
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks