Very Hot Topic (More than 25 Replies) Non-Working "as is" Search Characters (Read 6003 times)
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Non-Working "as is" Search Characters
Nov 30th, 2005 at 9:46pm
Print Post Print Post  
Mark -

Are you aware that there are certain characters that won't work "as is" in search strings?

Here's two that I have come across recently.

     ampersand  ( & )     ...   forward slash     ( / )

For example, I have a name field with something like:

     John & Jane Smith

Whether I search for John & Jane Smith in either the universal mode or even in the field itself, it does not retrieve the record.

Apparently I must tell Sesame that I want it to search for the "literal" character of an ampersand and I have to enter

     John \& Jane Smith

Likewise, to search for a field with a forward slash / I must first enter the backslash, such as:

     ..\/..     (or ..\/\/..  to search for two forward slashes)

If you are aware of this, my question is whether this is documented in the user guide ... so I know what the "restricted" search characters are.

Whether or not you're aware of this, is there any hope that this can be modified so that I can search for any character without having to use the backslash preceding it? Otherwise, unless I can remember all the "restricted" characters, I have no way of knowing whether my search indeed failed .... or whether I used a character that will not work "as it."

Thanks!
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Non-Working "as is" Search Characters
Reply #1 - Nov 30th, 2005 at 10:00pm
Print Post Print Post  
Hello Spencer,

Yes we are aware of it and Yes it is documented

Page 224, 229, 235 of the Sesame 1.1 User Guide show the special search characters.

I believe both of those characters are carried over from the Q&A search syntax, so it is unlikly that they will be changed.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Non-Working "as is" Search Characters
Reply #2 - Nov 30th, 2005 at 10:13pm
Print Post Print Post  
Spencer,

This doesn't work for all special characters, but there is an undocumented special character that may help. If you precede your search criteria with [ , Search will not treat the following characters as special:

[ ] * . ? ^ " $

So to search for M.. in a field as opposed to all values beginning with M try:

[M..

  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Non-Working "as is" Search Characters
Reply #3 - Nov 30th, 2005 at 10:44pm
Print Post Print Post  
Hi -

OK - my first reaction is that we need to quickly convert all Q&A users to Sesame so that we don't have to be bound by Q&A's previous restrictions.  lol  Since that's not likely to happen in the immediate future, it would be very helpful to have concise illustrations of [b][i]all[/i][/b] the special search characters that might be required.  

I checked the references you gave me, Ray, and did not find a complete, comprehensive listing.  I did pick up the equal sign ( = ) as another special character; however I did not see the forward slash ( / ) listed (per se).   So, I am now intrested in hearing from anyone who is aware of any special search needs.

I was trying to come up with at least a partial listing, but it is turning out to be more complicated than I thought.  So ... when I get something worth listing, I will do so and I will modify it whenever I have something new to add.

In the meantime, Erika, I am confused about the left bracket ( [ )character and how I can use it.

For example, supppose that I have a field entry of

Spencer?  Mary

I can find the appropriate record (and no others)  by searching using ..\?..

but I am not able to find the record using  ..[?..

Am I misunderstanding what you meant by saying that the [ works with ?       ??????

Guess I know what I'll be "playing" with into the wee hours of the morning (yet again). lol





  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Non-Working "as is" Search Characters
Reply #4 - Nov 30th, 2005 at 11:05pm
Print Post Print Post  
Just for historical purposes, the "undocumented" illegal character search in Q&A was the ] character

For example entering ]YES into a number field would bring those records with the word YES in the field.

Ironic that the special character in Sesame would be the matching bracket [ Shocked
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Non-Working "as is" Search Characters
Reply #5 - Nov 30th, 2005 at 11:18pm
Print Post Print Post  
The "]" was already taken. It is used to perform a text search in non-text fields. From the manual:
Quote:
] Performs a text search in a non-text field. The ] must be the first character of the criteria. There are limited opportunities to use this special search character because Sesame's strict data typing prohibits the entry of invalid information in number and date fields, for example. The primary use of ] is to perform wildcard searches in date fields. This is possible because the underlying value stored in the date field —regardless of format — is stored in YYYY/MM/DD (2003/12/15, for example) format. By beginning the search criteria with ] you can use Sesame's regular wildcard characters.


That "[" causes most of the special characters to be "escaped" - as though you had put a backslash in front of each of them.

That is one of the ironies of DOS. When MS decided to use the backslash as the directory separator, most OSs and most computer languages had standardized that as the "escaping" character. Thereby, MS created one of the biggest incompatibilities in computer history.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Non-Working "as is" Search Characters
Reply #6 - Nov 30th, 2005 at 11:26pm
Print Post Print Post  
OK (mostly Erika) here's something else I am confused about.

You said that [ could be used to search for [ ] (among the others).

Yet, if I have a record such as

Spencer or [Mary]

I can search for the record using ..[.. or ..]..
(Likewise I cannot retrieve the record using ..[[.. or ..[]..)  I am not getting any extraneous records.  Is there a case when using either of these two examples would bring up records that I do not want included?

I have had no success searching for a record containing two dots. 

Spencer..Mary
Thomas .. Bill

Without know the names, how do I find these two records by searching for the ..
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Non-Working "as is" Search Characters
Reply #7 - Nov 30th, 2005 at 11:44pm
Print Post Print Post  
Spencer,

Erika is getting ready for another road trip teaching classes in Toronto and Dallas - so you are stuck with me.

The "[" character disables most of the special characters that follow it till the end of the line. So, if you say:
Code
Select All
[M.. 


It will only match a LE that has an M followed by two periods in it (and nothing else!). In other words, it is looking for a LE with "M.." in it exactly.

In the example, you have given "Spencer..Mary" as being in the LE. To find that without knowing the names, use "..\.\..."

The backsplash only escapes one set of the search characters. The "[" escapes all of the search characters (Erika listed) until the end of the line.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Non-Working "as is" Search Characters
Reply #8 - Dec 1st, 2005 at 12:23am
Print Post Print Post  
Just to help clarify ..\.\...

This is the same as the "normal" two-dot wild card.
like using ..ABC..  to locate ABC, you are trying to locate two periods.

.. for the leading two dots.
\. for the first period to look for
\. for the second period to look for
.. for the trailing two dots.

The \ only provides special handling for the single following character.
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Non-Working "as is" Search Characters
Reply #9 - Dec 1st, 2005 at 12:51am
Print Post Print Post  
Grrr

With regard to the .. search, I am more confused than ever before.

I could swear that I tried the retrieve spec you suggested, Mark, for retrieving two dots and that it retrieved more records than just the one containing two dots.  In any event, I just tried it again and it appears to work correctly. 

Mark - I only mentioned Erika because she is the one who posted the use of [ - to indicate that the following character should be treated as literal - in a retrieve spec; I could not, however, get it to function that way.  So, once again, if anyone can given an example of using it, I would be happy to try it.



  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Non-Working "as is" Search Characters
Reply #10 - Dec 1st, 2005 at 1:18am
Print Post Print Post  
The "[" does not just escape the "special" characters immediately following it, but all the special characters (within the set that Erika posted) following it until the end of the line.

A case where you might want to use this is if you want to use cut&paste to fill in a search spec from LE values, but you know that some or all of the source LEs may contain "special" characters and you want an exact match. By, placing a "[" at the start of the line, you tell Sesame to ignore all of the special characters that may appear in the following string.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Non-Working "as is" Search Characters
Reply #11 - Dec 1st, 2005 at 1:20am
Print Post Print Post  
Now I am even confusing myself.

Marc -  I [b]know[/b] that recently I had tried searching for // and it would not work unless I typed ..\/\/..

YET, I just tried it using ..//.. and it worked just fine.  Is it possible you "fixed" (or changed) something in the most recent release of verion 1.1.3 ?  
« Last Edit: Dec 1st, 2005 at 4:12pm by SpencerWulwick »  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Non-Working "as is" Search Characters
Reply #12 - Dec 1st, 2005 at 1:37am
Print Post Print Post  
Are you aware that certain of the search command characters in Sesame (and in Q&A) are specific to certain field / LE types? So, what you may need to escape in one LE, you may not need to escape in an LE of a different type.

It was actually one of the things that I objected to most in reimplementing the "Q&A" way of searching. For example, the ".." operates as the "match any number of any character" when used in a string field, but means "range" or "through" when used in a date field. This inconsistency means that users must not only memorize a "mini-language" in order to search, but must also remember a set of "modes" (based on field type) that modify the meaning of the language.

Sesame 2.0 remedies this to an extent in that it optionally supports regular expressions in place of Q&A search syntax. And while, regex is also a mini-language that must be memorized, it is not mode-centric.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Non-Working "as is" Search Characters
Reply #13 - Dec 1st, 2005 at 3:16am
Print Post Print Post  
Hi -

Let me see if I can clarify my comments because I would like to hear very specific examples that could be of general value to myself and others.

First, I should have clarified that my searches at this point have been within a text LED, so please keep in mind that my specific illustrations are in regard to doing a search on a text LED field.  Also, I have not seen any difference in behavior (other than that expected) of performing the search in a specific field or using the universal search mode to perform the search on any or all fields.

1)  No matter what situations I try to set up, I cannot get the [ character to work.  I would really appreciate knowing something I could type into a text field and then retireve it using the [ and not simply using     ..something..  I would like an example of something I can specifically type into a text field ... and what I would need to specifically type into the retrieve spec ... to achieve the desired result.

Specifically here is what I found will not work when using a typical wildcard search unless you bring into play the \ character.

2)  If I want to find \ within a field
  • \ retrieves nothing
  • ..\.. retrieves nothing
  • ..\\.. produces the desired result


3)  If I want to find = within a field
  • = retrieves all blank records (as expected)
  • ..=.. retrieves nothing
  • ..\=.. produces the desired result


4)  If I want to find & within a field
  • & retrieves nothing
  • ..&.. retrieves all records
  • ..\&.. produces the desired result


5)  If I want to find . within a field
  • . retrieves nothing
  • ..... retrieves records with ending . (as does ..\.)
  • ..\... produces the desired result


6)  If I want to find ? within a field
  • ? retrieves records with field containing one character (as expected)
  • ..?.. retrieves records with non-blank field (as expected and as will /=)
  • ..\?.. produces the desired result


7)  If I want to find .. within a field
  • .. retrieves all records including blanks
  • ...... retrieves all records including blanks
  • ..\.\... produces the desired result

So, at this point, I am basically asking for three things:

1)  A precise example of how I can set up a situation where [ would be used in the retrieve spec (as discussed in point 1 above)

2)  Additional examples, such as I gave (in points 2 through 7 above) of a character you could not find within a field, using a simple wildcard search and

3)  How (in the case of 2 immediately above) you would perform the search to get the desired results.

I've tried my darndest to make both my request, and the information I am sharing, as clear as possible and hope this will enable some feedback that is directly "on point" (along with the other "stuff" that has been very informative and helpful).

Thanks!
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Non-Working "as is" Search Characters
Reply #14 - Dec 1st, 2005 at 2:29pm
Print Post Print Post  
Quote:
Hi -

Let me see if I can clarify my comments because I would like to hear very specific examples that could be of general value to myself and others.

First, I should have clarified that my searches at this point have been within a text LED, so please keep in mind that my specific illustrations are in regard to doing a search on a text LED field.  Also, I have not seen any difference in behavior (other than that expected) of performing the search in a specific field or using the universal search mode to perform the search on any or all fields.

1)  No matter what situations I try to set up, I cannot get the [ character to work.  I would really appreciate knowing something I could type into a text field and then retireve it using the [ and not simply using     ..something..  I would like an example of something I can specifically type into a text field ... and what I would need to specifically type into the retrieve spec ... to achieve the desired result.

Specifically here is what I found will not work when using a typical wildcard search unless you bring into play the \ character.

2)  If I want to find \ within a field
  • \ retrieves nothing
  • ..\.. retrieves nothing
  • ..\\.. produces the desired result



Yes. That is correct, and is correct behavior. The backslash means "escape the following" and must be escaped to be used literally.

Quote:
3)  If I want to find = within a field
  • = retrieves all blank records (as expected)
  • ..=.. retrieves nothing
  • ..\=.. produces the desired result



Yes. That is correct and correct behavior. The equal sign means "equals" and must be escaped to be used literally.

Quote:
4)  If I want to find & within a field
  • & retrieves nothing
  • ..&.. retrieves all records
  • ..\&.. produces the desired result



Yes. That is correct and correct behavior. The ampersand means "and" and must be escaped to be used literally.

Quote:
5)  If I want to find . within a field
  • . retrieves nothing
  • ..... retrieves records with ending . (as does ..\.)
  • ..\... produces the desired result



No. That is incorrect. A single period has no meaning to Sesame and does not need to be escaped - though a double period does.

So, if you have a field that says: "Mary.Lister" and you create a search spec for that field that says "Mary.Lister", Sesame will find the record that has that field saying "Mary.Lister" without anything being backslashed or escaped.

Quote:
6)  If I want to find ? within a field
  • ? retrieves records with field containing one character (as expected)
  • ..?.. retrieves records with non-blank field (as expected and as will /=)
  • ..\?.. produces the desired result



Yes. That is correct in part, and correct behavior. The question mark means match any single character and must be escaped to match only a literal question mark.

Quote:
7)  If I want to find .. within a field
  • .. retrieves all records including blanks
  • ...... retrieves all records including blanks
  • ..\.\... produces the desired result



Yes. This is correct in part, and correct behavior. a double period ("..") in a string field, represents any number of any character, and must be escaped to be used literally. Though only one backslash is necessary to escape both periods, i.e.: "\.."

Quote:
So, at this point, I am basically asking for three things:

1)  A precise example of how I can set up a situation where [ would be used in the retrieve spec (as discussed in point 1 above)


If your field contains: "Mary..A..Lister..Billingsham..Wadsworth" and you seek to find (specifically) "Mary A. Lister Billingsham Wadsworth" and no on else. You could either enter "Mary\..A\..Lister\..Billingsham\..Wadsworth" in your search spec, or you could enter: "[Mary..A..Lister..Billingsham..Wadsworth" in your search spec. They would both resolve to the same thing.

Quote:
2)  Additional examples, such as I gave (in points 2 through 7 above) of a character you could not find within a field, using a simple wildcard search and


In a string field, the following characters and sequences of characters need to be escaped to be found literally:
Code
Select All
..
(
)
>
<
=
>=
<=
[]
{
}
~
&
;
/
MAX
MIN
?
\
 



Quote:
3)  How (in the case of 2 immediately above) you would perform the search to get the desired results.


In every case you can either preceed the command sequence with a backslash, or you can preceed the entire search spec string with a "[". If you preceed the string with a "[", you will literalize most of the command sequences in that string.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Non-Working "as is" Search Characters
Reply #15 - Dec 1st, 2005 at 3:56pm
Print Post Print Post  
[quote author=SpencerWulwick  link=1133387185/0#11 date=1133400014]Now I am even confusing myself.

Marc -  I [b]know[/b] that recently I had tried searching for // and it would not work unless I typed ..\/\/..

YET, I just tried it using ..//.. and it worked just fine.  Is it possible you "fixed" (or changed) something in the most recent release of verion 1.1.3 ?  [color=Red]Would still like feedback on this point.  Thanks![/color][/quote]


Spencer,

Nothing was changed in 1.1.3 in regards to searching for '//' in an element. I just tried it here in 1.1.2 and you can search for '//' using '..//..'  I even went back to version 1.0 and the same behavior is there as well you can search for '//' using '..//..'

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Non-Working "as is" Search Characters
Reply #16 - Dec 1st, 2005 at 4:00pm
Print Post Print Post  
[quote author=SpencerWulwick  link=1133387185/0#3 date=1133390666]I checked the references you gave me, Ray, and did not find a complete, comprehensive listing.  I did pick up the equal sign ( = ) as another special character; however I did not see the forward slash ( / ) listed (per se).   So, I am now intrested in hearing from anyone who is aware of any special search needs.[/quote]

The / is on page 224 of the Sesame 1.1 User Guide right above the = sign. It is roughly 2 3/4 inches down the page. If you have the 1.0 User guide it is on page 196 roughly 6 inches down the page.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Non-Working "as is" Search Characters
Reply #17 - Dec 1st, 2005 at 4:11pm
Print Post Print Post  
Ray -

I probably wasn't clear when I said that I couldn't find use of the "/" in the user guide.  I wasn't referring to it's primary use regarding "not" ... I was referring to its use as an escape character to find the literal character following it.  

I was asking if that specific point was documented.

As for the // not working, I guess that will just remain a mystery as to why I originally could not use it.  What I had done was set up some records for import to Sesame.  Some of the "remarks" fields contained paragraph marks within the field.  In order for this not to be misinterpred as a new record, on import to Sesame, I did a search and replace of the paragraph marks with //. I thought I would then simply search for the records containing // and replace it with paragraph returns.  

I know that when I did my search it did not retrieve the records and I started over using something else.  In any case, it is clear that it does work ... and I may have had another "problem" that I didn't take into consideration.

Thanks!
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Non-Working "as is" Search Characters
Reply #18 - Dec 1st, 2005 at 4:26pm
Print Post Print Post  
Quote:
Ray -

I probably wasn't clear when I said that I couldn't find use of the "/" in the user guide.  I wasn't referring to it's primary use regarding "not" ... I was referring to its use as an escape character to find the literal character following it. 


The Forward Slash '/' is not an escape character the Back Slash '\' is. The backslash '\' is documented on page 235 of the Sesame 1.1 User Guide or page 207 of the Sesame 1.0 User Guide.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Non-Working "as is" Search Characters
Reply #19 - Dec 1st, 2005 at 5:03pm
Print Post Print Post  
Ray

Mea culpa and thank you for making the point.  Somewhere my message(s) went bonkers referring to \ and or /

In any event, page 235 is what I was looking for and I don't know why I missed it the first time.

Thanks
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Non-Working "as is" Search Characters
Reply #20 - Dec 1st, 2005 at 5:23pm
Print Post Print Post  
Mark -

Quote:
No. That is incorrect. A single period has no meaning to Sesame and does not need to be escaped - though a double period does.

So, if you have a field that says: "Mary.Lister" and you create a search spec for that field that says "Mary.Lister", Sesame will find the record that has that field saying "Mary.Lister" without anything being backslashed or escaped.


I disagree with you on this point, and I think it may be that we are each using different search criteria from the other.  It sounds to me like you are specifically entering "Mary.Lister" and I agree with you that that will work.

However, my objective is to find any field that has one (or more) "dots" (periods, whatever you call it) in a field in a record.

So, in my "test" database, I have:
    mary . spencer
    Spencer .. Mark
    Spencer .. Mary
    Spencer..Mary
    mary spencer.

If I use .....   (two dots for a "wild card", one dot that I want to find and two more dots for a "wild card"), sesame only retrieves the record:

    mary spencer.

I can retrieve all appropriate records by using ..\...

or  (CONGRATULATIONS TO ME (thanks to your feedback), I FOUND A MEANINGFUL USE FOR [ TO WORK)

I can also retrieve all appropriate records by simply using [.

With regard to your example of using [ I still don't get it.  Sorry!

If a record contains: 

    Mary..A..Lister..Billingsham..Wadsworth


and I want to find only that record, I can simply enter a retrieve spec of:

    Mary..A..Lister..Billingsham..Wadsworth


and the [ is not needed. 


  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Non-Working "as is" Search Characters
Reply #21 - Dec 1st, 2005 at 5:49pm
Print Post Print Post  
Quote:
Mark -

I disagree with you on this point, and I think it may be that we are each using different search criteria from the other.  It sounds to me like you are specifically entering "Mary.Lister" and I agree with you that that will work.

However, my objective is to find any field that has one (or more) "dots" (periods, whatever you call it) in a field in a record.

So, in my "test" database, I have:
    mary . spencer
    Spencer .. Mark
    Spencer .. Mary
    Spencer..Mary
    mary spencer.

If I use .....   (two dots for a "wild card", one dot that I want to find and two more dots for a "wild card"), sesame only retrieves the record:

    mary spencer.

I can retrieve all appropriate records by using ..\...

or  (CONGRATULATIONS TO ME (thanks to your feedback), I FOUND A MEANINGFUL USE FOR [ TO WORK)

I can also retrieve all appropriate records by simply using [.


You are both right. Mark meant if in a field you know there is a single period then it does not need to be escaped. You are searching for a period anywhere in that field in which case yes it needs to be escaped otherwise Sesame will see '.....' as '..' '..' '.' which is ending with a period as Sesame has no way to know that you want the middle period to be ignored unless you escape it.

Quote:
With regard to your example of using [ I still don't get it.  Sorry!

If a record contains: 

    Mary..A..Lister..Billingsham..Wadsworth


and I want to find only that record, I can simply enter a retrieve spec of:

    Mary..A..Lister..Billingsham..Wadsworth


and the [ is not needed. 


but a retrieve spec of
    Mary..A..Lister..Billingsham..Wadsworth
would also retrieve
    MaryAppleListerBillingshamWadsworth
    Mary Joe Fred A Lister Billingsham Wadsworth
    Mary Ann Clister Billingsham Fred Wadsworth
    MaryAListerBillingshamWadsworth
    Mary Ann Fred Joe Bob Sue Widlister Spencer Bob Billingsham Robert Sean Billy Barb Don John Lou Ginger Wadsworth


so to retrieve only the record whose field contains "Mary..A..Lister..Billingsham..Wadsworth" you would use a [

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Non-Working "as is" Search Characters
Reply #22 - Dec 1st, 2005 at 5:55pm
Print Post Print Post  
Ray -

Got ya!  I guess I don't see a practical use of that type of entry in an actual application; however, it definitely illustrates the point and makes a distinction.  Thanks!

Now, after all this dialogue, I am preparing a word document listing the search characters that need special consideration.  I will e-mail you a copy and would appreciate feedback from you and Mark.

If it looks "ok" then I will make it available to anyone who would like it - and hope that they, in turn, will provide any feedback that might make it a better document.

Thanks!

  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Non-Working "as is" Search Characters
Reply #23 - Dec 1st, 2005 at 6:06pm
Print Post Print Post  
Hi -

I'm getting close; however, I do not see the "problem" with max and min.  I am aware of the fact that I can use it to get a number of records such as max 5 or min 3 or whatever.

However, I do not see the affect that has on my searches.

If I enter Max, I retrieve all records with Max (and nothing else) in the field.  (Likewise with Min)

If I enter ..Max.. I retrieve all records that contain, anywhere in the field, the letters Max.  (Likewise with Min).

So, I am confused about when they need to be given "special" consideration in the situation I have described.

As far as I can tell the [] also works fine with single or wild card searches whether searching for either the left bracket or the right bracket or both. 

Can you give me any illustrations of where these characters won't work "properly" in a retrieve spec?

Thanks!
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Non-Working "as is" Search Characters
Reply #24 - Dec 1st, 2005 at 6:15pm
Print Post Print Post  
Spencer,

You have to give them special treatment if for example you are looking for all the records that have a value of "Max 3" in a field. Just typing 'Max 3' at the retrieve spec will give you the three highest records. Typing Max.. will get you 'Max 1', 'Maxwell', 'Maxax', etc. So to find only the records that say "Max 3" you would to use a [

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Non-Working "as is" Search Characters
Reply #25 - Dec 1st, 2005 at 6:27pm
Print Post Print Post  
Aha!  Got it.  Thanks!

Did you see that I (thinking I could beat your reply - foolish me) modified the preceding note to include a comment about the brackets?
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Non-Working "as is" Search Characters
Reply #26 - Dec 1st, 2005 at 6:39pm
Print Post Print Post  
I just saw it. If you try to search for an entry that starts with a '[' and you type '[..' you are going to get any record that has '..' in it and not the records where the data in the field starts with '['

If you try to search for an entry that starts with a ']' and you type ']..' You are going to get every record I believe and not just the records where the data in the field starts with ']'.

There are others but those are the ones I knew.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Non-Working "as is" Search Characters
Reply #27 - Dec 1st, 2005 at 8:02pm
Print Post Print Post  
Well, I've got to put this aside for awhile and, unfortunately, I have not gotten a clear understanding of how the

[]
{
}

work.   (Grrr - and I don't understand why the forum won't let me separate the left and right brace, no matter what I try!  lol)

Other than that, the document is fairly complete, so I am going to e-mail it to you and would appreciate feedback on making it more viable for others to find it useful.

Thanks!
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Non-Working "as is" Search Characters
Reply #28 - Dec 2nd, 2005 at 5:06pm
Print Post Print Post  
Hi -

I haven't gotten feedback (yet) on the document I sent Mark/Ray; however, since what I have come up with has already been useful to me, I am ready to share it.  Hopefully, someone might find use for it "as is" and others will be able to provide feedback to make it more complete.

So, if anyone wants a copy of the word document, summarizing these "special character" search considerations, just let me know here (or by email to) SWulwick@tampabay.rr.com.
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Non-Working "as is" Search Characters
Reply #29 - Dec 2nd, 2005 at 5:17pm
Print Post Print Post  
Quote:
Hi -

I haven't gotten feedback (yet) on the document I sent Mark/Ray; however, since what I have come up with has already been useful to me, I am ready to share it.  Hopefully, someone might find use for it "as is" and others will be able to provide feedback to make it more complete.


Spencer,

I just talked to Mark and neither of us received the document as of yet.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Non-Working "as is" Search Characters
Reply #30 - Dec 2nd, 2005 at 5:21pm
Print Post Print Post  
Spencer,
You might want to consider sending search related documents to Alec Mulvey. His expertise in Sesame and Q&A searching surpasses Ray's and (certainly) mine, and - as far as I know, is unrivaled.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Non-Working "as is" Search Characters
Reply #31 - Dec 2nd, 2005 at 5:22pm
Print Post Print Post  
Ray -

I couldn't find an e-mail address for you, so I sent it to Mark and asked him to "share" it with you.  Just tell me the best way to send it and it's on the way.

Thanks!
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Non-Working "as is" Search Characters
Reply #32 - Dec 2nd, 2005 at 5:24pm
Print Post Print Post  
Mark -

I've never gotten any response to any e-mail I have sent Alec so I'm not sure I have a correct e-mail address.

If you tell me where to send it, I'll be happy to.

Thanks!
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Non-Working "as is" Search Characters
Reply #33 - Dec 2nd, 2005 at 5:25pm
Print Post Print Post  
Just send it to Support@Lantica.com and I'll pass it out.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Non-Working "as is" Search Characters
Reply #34 - Dec 2nd, 2005 at 5:29pm
Print Post Print Post  
Ray -

It's in the (e) mail   lol

Thanks!

e-gads, this is just like "instant messaging."  lol
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Non-Working "as is" Search Characters
Reply #35 - Dec 2nd, 2005 at 5:41pm
Print Post Print Post  
Got it, Thanks. I'll pass it onto Alec. I know he is rather busy lately so it may take him a while to read over it.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Non-Working "as is" Search Characters
Reply #36 - Dec 8th, 2005 at 4:38am
Print Post Print Post  
Hi -

I just found another character that will not work (by itself) in a retrieve spec.

The character is an asterisk  *

Use either /*    or    [* and the search will work.

Thanks!
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Non-Working "as is" Search Characters
Reply #37 - Dec 8th, 2005 at 2:06pm
Print Post Print Post  
Quote:
Hi -

I just found another character that will not work (by itself) in a retrieve spec.

The character is an asterisk  *

Use either /*    or    [* and the search will work.
Thanks!


Spencer, when you say "does not work", you mean that it implements a search command (does some work). Every character that you have found so far in one way or another implements a search command (work). As such, to use them literally, Sesame provides a means to "escape" or literalize that search command - to tell it that, this time, you intend to find that character itself as opposed to running the command that character represents.

In almost every case these characters are hold overs from Q&A or are the very well known characters that implement regular expressions. In any case, any database that implements a search language, has a set of these characters. And, in almost every case, the backslash "\" is used to escape them.

In these posts and in the title of this thread, you seem to be implying that there is something broken. Having command characters in the search language is a necessary feature of a search language. Most of these are derived from Q&A and implemented very similarly. A handful are new additions or modifications of the Q&A character (like "~" no longer meaning "soundex"). And, I will grant that something less than five of them slipped by undocumented (There are two that I know of: "[" and "*"). But, in all, they do the commands they are intended to do.

To describe them as "non-working" is missleading. These are the characters that do all of the "work" of a search language. Without them, every search spec would have to be absolutely identical to the value in the field. No range operations could be performed. No comparison operations could be done (i.e.: "< 22"). There could be no wildcard searches. There could be no search spec programming, etc..

The pages between 221 and 255 of the User's Manual outline these command characters, and on page 235 the "escaping" of command characters is described.

Quote:
More Special search characters
Here are several more characters that have a specific meaning in Sesame searches.(The more commonly-used ones have already been described.):
\ Means "treat the next character as a literal character."
] Means "treat what follows as a text string."
& Means AND — used to string together multiple criteria.
~ Means "make this a case-sensitive search."

\ Suppresses the special meaning of characters such as &, =, .. and so forth, and is used immediately before such a character. It affects only the single character following the \. You can use \ anywhere in the criteria and you can use it more than once. Examples of use include finding records that have been inadvertently added by entering retrieve criteria in Add mode, and searching for characters such as the ampersand ("&") and equals ("=") sign.

] Performs a text search in a non-text field. The ] must be the first character of the criteria. There are limited opportunities to use this special search character because Sesame's strict data typing prohibits the entry of invalid information in number and date fields, for example. The primary use of ] is to perform wildcard searches in date fields. This is possible because the underlying value stored in the date field — regardless of format — is stored in YYYY/MM/DD (2003/12/15, for example) format.
By beginning the search criteria with ] you can use Sesame's regular wildcard characters. This will be shown in the examples below.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Non-Working "as is" Search Characters
Reply #38 - Dec 8th, 2005 at 5:26pm
Print Post Print Post  
Mark -

I thought that both the intent of my communication - even in the title NON-WORKING "AS IS" SEARCH CHARACTERS - and the dialogue - made it clear that what I was saying is that the character could not be used "as is" in a retrieve spec.  The "not-working" part referred to the fact that you could not use it as a retrieve spec, BY ITSELF

I understand full well, that characters have special meanings and that it is intended and I understand full well the use of "escape" characters.  I am simply saying that you have to modify the character (use it in conjunction with the escape command) to get the result you want.

As in many of the characters discussed, yesterday I entered an asterisk in a "mark" field I use to uniquely identify records for special use and/or retrieval.  I entereded an asterisk in the one field on several records.

I then went to the retrieve spec and in the same field entered an asterisk.  I pressed F10 and my records were not retrieved.  That is what I meant by "didn't work" AS IS - AND AS A RETRIEVE SPEC.  

When I entered \* in the retirev spec, it "worked" meaning it retrieved the records I wanted.

Had I entered an "A" (or hundreds of other choices) in the mark field and entered an A in the retrieve spec, I would have gotten the desired results.  

If I had difficulty with the use of these characters as a retrieve spec, I can't help but feel that other people would have the same problem, as well.  So I was simply trying to communicate HOW to perform the retrieve to get the "anticipated" results.

I hope this clarifies it.

Speaking of the tilde ~ by the way, is there a way to do a soundex search in Sesame?  I found it a very useful tool and had need for it just yesterday.  The only thing I could find in the user guide is that "soundex searches are not supported in 1.0."  The "implication" is that it will be supported in a later version.  Has it been added to one of the updates and, if not, will it be?

Thanks!
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Non-Working "as is" Search Characters
Reply #39 - Dec 8th, 2005 at 5:41pm
Print Post Print Post  
Spencer,

I just looked through the source for 1.1.3 and I found no reference that the '*' is a special search character. If a field has only a * in it then a * in the retrieve spec will find that record. '..*.." will find any record that has a * in that field.

In what case is it not working for you?

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Non-Working "as is" Search Characters
Reply #40 - Dec 8th, 2005 at 5:48pm
Print Post Print Post  
Ray -

I stand corrected and withdraw my comments about the asterisk *.

As I said, yesterday I entered an asterisk in several records.  When I entered an asterisk in the retrieve spec, it did NOT work (i.e. it did not retrieve the records I had marked with the asterisk).

It is possible that I neglected to press F3 before I did the search and that there was a "leftover" spec in a field that was not visible.

I just tried it, now, the way I did it yesterday and it worked just fine without the escape character.

My apologies and thank you!
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Non-Working "as is" Search Characters
Reply #41 - Dec 8th, 2005 at 6:41pm
Print Post Print Post  
Quote:
If I had difficulty with the use of these characters as a retrieve spec, I can't help but feel that other people would have the same problem, as well.


Do you have any suggestions as to how we might document this better? It is approximately 90% compatible with Q&A's syntax - so any Q&A documentation on search syntax pretty much applies. We can't (of course) simply copy the Q&A documentation. But does Tom's book on Q&A (for example) make this any clearer for you than do the Sesame manuals, or any of the other +/-12 books that cover Q&A/Sesame search syntax?
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Non-Working "as is" Search Characters
Reply #42 - Dec 8th, 2005 at 7:06pm
Print Post Print Post  
Ray -

I think that the document I sent you makes it a little clearer. 

By combining what I sent you with the documentation already in the user guide, I think it would be more complete.

  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Non-Working "as is" Search Characters
Reply #43 - Dec 8th, 2005 at 10:04pm
Print Post Print Post  
From "Tom's book", page 211:
=============================
Quote:
\  Finds literal character following symbol (\? finds question mark).

Special Usage Searches
..
/..
]
~
I have eliminated the text next to the four patterns noted above.  There is one sentence for each of the lines, except the ~ soundex has many examples.  The Sesame documentation provides much more detail.
-----------------------------------
Editing note: the symbols above are not too clear on my browser. Reading the four groups, top to bottom, are:
Double Periods
Forward slash, double periods
Right closing bracket
Tilde
-----------------------------
And "Tom's book" is the excellent "Q&A Bible" by Thomas J. Marcellus, editor of The Quick Answer, and now editor of the excellent Inside Sesame.
=====================================
If I am not mistaken, in Sesame, using the backslash escape character "\" is not limited to "special characters".  You can use it for any character, so if in doubt, use it.
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged