*Search and Replace Plugin

Writing and using plugins for Version 5 and above.
User avatar
ronk
Famous
Posts: 185
Joined: 19 Feb 2016 22:50
Family Historian: V6.2
Location: MN, USA
Contact:

Search and Replace Plugin

Postby ronk » 19 Mar 2017 18:47

Looking to learn by example a way to search with expression with a result set of all individual records with multiple values with 'or' condition. For example, list all individual records local notes with either text 'aaa' or 'bbb' or 'cccc'. Can this plugin be used for a 'search only' in this way? Works fine with FH's 'Find' separately, but would like to combine so no duplication of records in the results.

Or, ...am I supposed to use a Query?
Ron Krzmarzick~~ FH 6.2.2 TNG 11.1 website http://www.kmtrees.com , Wampserver32, LFT 7.5, FTM 2014, Win 10 pro

User avatar
tatewise
Megastar
Posts: 11206
Joined: 25 May 2010 11:00
Family Historian: V6.2
Location: Torbay, Devon, UK
Contact:

Re: Search and Replace Plugin

Postby tatewise » 19 Mar 2017 20:29

This Plugin is not so good at that kind of multiple condition expression.
It either searches for plain text, or uses Lua Patterns that are very similar to Regular Expressions.
See Knowledge Base > Understanding Lua Patterns.
So if the search criteria can be represented in one Lua Pattern then fine, but otherwise not possible.

In this case a Query would be better suited, because each Row tab filter can specify separate criteria.
Each record is included once in the Result Set regardless of how many criteria match.
Also the criteria can be complex boolean expressions using such as =IsTrue( aaa = bbb and ( ppp = qqq or xxx = yyy ) ).
Mike Tate ~ researching the Tate and Scott family history.

User avatar
ronk
Famous
Posts: 185
Joined: 19 Feb 2016 22:50
Family Historian: V6.2
Location: MN, USA
Contact:

Re: Search and Replace Plugin

Postby ronk » 19 Mar 2017 21:13

Thanks, Query worked excellent with 3 row filters add if 'containing'. Matched the results I did with 3 separate FH 'Find's, save as csv's, and excel 'remove duplicates'...and much faster.
Ron Krzmarzick~~ FH 6.2.2 TNG 11.1 website http://www.kmtrees.com , Wampserver32, LFT 7.5, FTM 2014, Win 10 pro


Return to “Plugin Discussions”

Who is online

Users browsing this forum: Google [Bot] and 1 guest