* Search and Replace Plugin

For users to report plugin bugs and request plugin enhancements; and for authors to test new/new versions of plugins, and to discuss plugin development (in the Programming Technicalities sub-forum). If you want advice on choosing or using a plugin, please ask in General Usage or an appropriate sub-forum.
Post Reply
User avatar
ronk
Superstar
Posts: 428
Joined: 19 Feb 2016 22:50
Family Historian: V7
Location: MN, USA
Contact:

Search and Replace Plugin

Post by ronk »

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 7.0.20 TNG 14.0.2 website Roots & Relatives Remembered, Laragon 5.0, Win 11 pro
User avatar
tatewise
Megastar
Posts: 28341
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Search and Replace Plugin

Post by tatewise »

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 plugins:understanding_lua_patterns|> 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 ~ tatewise ancestry
User avatar
ronk
Superstar
Posts: 428
Joined: 19 Feb 2016 22:50
Family Historian: V7
Location: MN, USA
Contact:

Re: Search and Replace Plugin

Post by ronk »

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 7.0.20 TNG 14.0.2 website Roots & Relatives Remembered, Laragon 5.0, Win 11 pro
Post Reply