IndexbyWords

Ed Kleban Ed at Kleban.com
Wed Nov 16 12:02:53 CST 2005



  
> 
> Unfortunately it turns out that "words" as defined by SplitToString include
> "." and exclude "_".  The later is unfortunate for my application.  The
> former seems to be unfortunate for most every application I can think of
> that might want to otherwise use IndexedByWords.  It's not good for prose,
> verse, or code since "foo" and "foo." and ".foo" would all parse out to be
> different search terms.  That is unless a search for "foo" would return
> entries that included all three of these (and other) combinations.  I'll
> have to go back and read the fine print on query for IndexedByWords fields.
>   

Well, the fine print is ambiguous at best.  But reading between the lines,
my guess is that it a search for "foo" is a search for an entry containing a
word that BEGINS with "foo".  Thus it would find  "foo" and "foo." and
"foobar." but not ".foo" --- which is probably pretty good for most real
applications you'd want to write.





More information about the Valentina mailing list