Tap Forms – Organizer Database App for Mac, iPhone, and iPad › Forums › Using Tap Forms › Boolean no longer working
- This topic has 6 replies, 3 voices, and was last updated 10 years, 7 months ago by Brendan.
-
AuthorPosts
-
May 24, 2014 at 3:33 AM #10233
Philip TateParticipantHi,
I had a saved Boolean search that was working until 2.2.2(511). “X” OR “Y” OR “Z” now returns nothing.May 24, 2014 at 6:30 AM #10234
Jim BurgessParticipantI can confirm this. As well, simple search terms typed into the Search field no longer work as they did in Ver 2.2.1.
May 28, 2014 at 12:05 PM #10275
BrendanKeymasterHi Philip and Jim,
So I had a problem with the FTS4 search engine in SQLite. I don’t know why, but it was taking over 40 seconds to display a mere 18 records from a form that contained 9000 records. And that was on my very fast MacBook Pro! I did some tests with turning off the search engine and results came back within a couple of seconds. So in version 2.2.2 I disabled the FTS search engine. But I’m thinking I need to turn it back on. I didn’t know if anyone was using the OR functionality as I hadn’t really documented it anywhere.
I was going to do some further investigations to see if I can figure out why it was taking so long to return the records.
Sorry for this change in behaviour.
Thanks,
Brendan
May 28, 2014 at 12:06 PM #10276
BrendanKeymasterThe one benefit of not using the search engine is you can do substring searches though. If I switch back, you won’t be able to do that. So you could find records than contain “Apple” if your search term was simply “ppl”.
May 28, 2014 at 12:25 PM #10278
Philip TateParticipantGood luck. What I want, of course, is very vast Boolean substring searches, but if I have to compromise I’d like to have the Boolean capability. Other users likely have different preferences. For what it’s worth, I recently got a Mac Mini with a fusion drive, and TapForms (and everything else) is much faster than my two year old Macbook Pro. The CPU is I7 opposed to I5, but the RAM is the same (8GB). Those long waits for recalculations I used to complain about are now very tolerable.
May 28, 2014 at 2:59 PM #10284
Jim BurgessParticipantBrendan,
I feel the advantages of having the boolean search capability override substring searches. For a couple of reasons– (1) boolean searches provide a more flexible and powerful search capability, and (2) substring searches can lead to unwanted records being returned (false positives). Not to complicate it too much, but the ability to enter Like syntax, e.g. LIKE ‘%ppl%’ might be a future consideration.I hope you can resolve the performance issues… FTS appears to be powerful, but pretty complicated as well.
Thanks.
May 28, 2014 at 11:13 PM #10289
BrendanKeymasterI’ve already switched back to the FTS engine for the next update so you’ll get your boolean searches back. I never released the change to the iOS version, so that’s still using FTS. When I disabled using FTS, Tap Forms was using LIKE “%ppl%” in the code. It actually automatically does that for Japanese, Chinese, and Korean languages. That’s because those languages can have different words within a series of characters which are not separated by spaces. FTS requires that search terms be separated by whitespace (spaces, tabs, line feeds, etc.).
Thanks!
Brendan
-
AuthorPosts
You must be logged in to reply to this topic.