Command-line search fails if more than 3 words

The place to post any Bugs or Problems you may have with the Current Release Version
Post Reply
epement
Posts: 163
Joined: Fri Sep 09, 2011 9:00 pm
Location: Florida
Contact:

Command-line search fails if more than 3 words

Post by epement »

This is a follow up to my message of Sept 26 (two months ago), where I was using Bible Analyzer's command-line search. I reported at that time that BA is working correctly, but it was because I was searching with short terms. Now that I am using longer searches, a bug has emerged.

Steps to reproduce:
On Windows 10, from a command prompt change directory to the installation directory of Bible Analyzer. Then enter this search command:

Code: Select all

bibleanalyzer://search+av/for_god_so_loved_the_world_that
BA issue 1.jpg
BA issue 1.jpg (9.67 KiB) Viewed 914 times

Bible Analyzer will come up, but fail to convert all the underscores to spaces, causing the search to fail. See the image below:
BA issue 2.jpg
BA issue 2.jpg (73.33 KiB) Viewed 914 times
After several experiments, I discovered that the problem is not due to the length of the string being searched, but to the fact that it will not accept more than 3 consecutive words. For example, try this search, which is much longer than "for god so"

Code: Select all

 bibleanalyzer://search+av/everlasting_priesthood_throughout
Bible Analyzer will correctly find a match at Exodus 40:15. Now add a single additional word:

Code: Select all

bibleanalyzer://search+av/everlasting_priesthood_throughout_their
Bible Analyzer will fail to find any matches because the underscore will precede the 4th word and a literal underscore does not appear in the BIble.

Can you reproduce this problem? I am using Bible Analyzer for Windows version 5.6.5.13
Eric Pement
2 Cor. 4:5

Tim
Site Admin
Posts: 1725
Joined: Sun Dec 07, 2008 1:14 pm

Re: Command-line search fails if more than 3 words

Post by Tim »

Traced the issue down to a malformed regex. This will be fixed in 5.7 which is coming soon.

Thanks.
Tim Morton
Developer, Bible Analyzer

But to him that worketh not, but believeth on him that justifieth the ungodly, his faith is counted for righteousness. (Rom 4:5 AV)

Post Reply