The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

alsor (4) [Avatar] Offline
#1
Hi!
I'm a little confused after reading section 3.4.2. It states that "The following code illustrates TermRangeQuery, searching for all books whose title begins with any letter from d to j". But how it is possible? I mean, lexicographically "j" is lesser that anything starting with "j" (like "junit"). And actually the test method confirm that.

It returns these three books:
title2:imperial secrets of health and longevity
title2:gödel, escher, bach: an eternal golden braid
title2:extreme programming explained

But we also have this book indexed:
title2:junit in action, second edition

Actually it is expected behaviour for me, but the text is confusing.
Thanks!
mike.mccandless (221) [Avatar] Offline
#2
Re: TermRangeQuery and lexicographical ordering
Yeah I agree the prose would've been better if I said "to j (exclusive)", ie, it accepts titles up until but not including j.