Jump to content


Photo

some thoughts about <and> command


  • Please log in to reply
3 replies to this topic

#1 Ken Han

Ken Han

    Platinum

  • Active Members
  • PipPipPipPipPip
  • 607 posts
  • Gender:Male
  • Location:San Diego, CA
  • Accordance Version:11.x

Posted 14 March 2014 - 01:23 PM

When I want to find, e.g. "man" and "god" appearing in the same verse with search scope set to verse I can search for:

 

man <and> god

 

which returns any verses where the words "man" and "god" are found together, in any order. This is expected.

 

But if I want to find a verse, e.g. that twice mentions "man" 

 

man <and> man

 

will not return what I expect, as the returned results show verses with single occurrence of "man". Searching, instead, for

 

man <followed by> man

 

will return what I expect, displaying verses that have "man" twice.

 

I tend to think of <and> as a condition that is satisfied only when what is left of it and right of it are both true. And that is how Accordance Help explains it. From Help: "X <AND> Z finds verses whereX and Z are both present." But when what is to the left and to the right of <and> are the **same**, then the operating logic seems inconsistent, treating "man <and> man" as equivalent to a simple string search of "man", but that is not what <and> operator implies.

 

I wonder if the <and> logic can be adjusted so that when what is to its left and its right are the same, <and> returns expected results of ...man...man...


Edited by Ken Han, 14 March 2014 - 01:25 PM.

  • Graham Buck likes this

#2 Nicholous Rogers

Nicholous Rogers

    Bronze

  • Active Members
  • PipPip
  • 91 posts
  • Gender:Male
  • Location:Orangeburg, South Carolina
  • Interests:Currently studying Greek Grammar through www.teknia.com
  • Accordance Version:10.x

Posted 14 March 2014 - 03:51 PM

well, I should have read your post more closely and I would have seen that you've already done that

 

 

 

Hi Ken, you might try <FOLLOWED BY>   I think that will get you the results you're looking for.

 

Nicholous


Edited by Nicholous Rogers, 14 March 2014 - 03:55 PM.

Nicholous Rogers

 

Accordance 11 Bible Study Collection

 

Windows 10 Technical Preview

 

HP Pavilion HPE h8-9090t CTO Desktop

 

Intel® Core™ i7 CPU   X990 @ 3.47GHz  3.47 GHz

(RAM):   24.0 GB

64-bit Operating System, x64-based processor

1.8 TB Hard drive

 

NVIDIA GeForce GTX 580 Graphics card w/Dual HP 2311x Monitors


#3 Steve King

Steve King

    Gold

  • Active Members
  • PipPipPipPip
  • 406 posts
  • Gender:Male
  • Location:Hoddesdon, Hertfordshire, UK
  • Accordance Version:10.x

Posted 14 March 2014 - 06:57 PM

I can see why you are thinking along those lines but it does not match the standard use of AND in computing. In computing terms the left and right of the <AND> are treated separately. So the comparison of the left 'man' is made against the scope then the right 'man' is made against the scope. The <AND> says nothing about the relationship between the two words other than they are both found in the scope.

 

To be honest that is why there are other commands that are are more specific (e.g. FOLLOWED BY). It includes a relationship between the two words which must also be true.


Steve King Running Accordance 11.0.2 on:

Mac 10.9.5 (Mavericks), mid-2010 Macbook Pro, 4Gb RAM

IOS 8 (iPad 2 and iPhone 5)


#4 Helen Brown

Helen Brown

    Mithril

  • Admin
  • 8,427 posts
  • Gender:Female
  • Location:heart in Israel
  • Accordance Version:11.x

Posted 15 March 2014 - 12:08 AM

The Construct window is much more accurate for defining searches like this, even three occurrences or more in a scope.


Helen Brown
OakTree Software




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users