Re: Re: Vista search including double quote
- From: Retroman <invalid@xxxxxxxxxxxx>
- Date: Thu, 05 Mar 2009 17:31:12 -0500
On Thu, 5 Mar 2009 13:18:01 -0800, Vern Rabe
<VernRabe@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Thanks. That sounds like it may be close enough, but when I try it, I get
even more confusing results. I have a file with the string -
ProtectionLevel">2< - in it. When I search for the string - Protection - it
finds it. When I search for the string - "Protection - (including the leading
double quote) it finds it. When I search for the string - "Protection" - it
doesn't find it. There is only one occurance of the word Protection in the
document.
Vern,
There is no need or reason to enclose one word within quotes in a content
search. Your first query above was the correct one because in content
searches, the upper case L following Protection is considered to begin a
separate word. In other words, look for the simplest query syntax that
works. The only reason that I put quotes around my previous example was
that your string - ProtectionLevel">1< - is interpreted by search as a
phrase, not as a single word.
More that I don't understand:
When I search for - "P - several documents are identified
When I search for "Pr" - two documents are identified
When I search for "P" - one document is identified
That doesn't make sense
All three of those queries are incorrect, hence the inconsistent results.
As I said, search is now word-based (like Google) and not character-based.
Avoid punctuation characters and never add quotes to a content search
except to enclose a phrase. If you want to search content for a word that
begins with Pr, either type the whole word or type Pr* to find all words
that begin with those two letters.
Doug M. in NJ
"Retroman" wrote:.
On Thu, 5 Mar 2009 08:05:04 -0800, Vern Rabe
<VernRabe@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Vista ultimate. I want to search multiple dtsx files for the existence of a
string that includes a double quote. Specifically:
ProtectionLevel">1<
When I search for that string, it appears to treat the double quote as a
space, and returns files that contain both "ProtectionLevel" and ">1<", but
not necessarily juxtaposed. Maybe there's an escape character I can prefix
the double quote with?
Thanks
Vern Rabe
Hello Verne,
If there is, I have never seen a reference to it in the MS documentation
for search. Search is now word-based and it sees punctuation as a break
between words. The closest thing that I can suggest is to use a wild card
character and to enclose the whole string in quotes, like this:
"ProtectionLevel?>1<"
I just tried a similar search on some HTML files, and this query returned
only files with content containing the full string when a quote character
occupied the wild card position:
"ball?><A"
Of course, it will also return the string with other characters in the
wild card position. I don't have a solution for that, maybe someone else
here does.
Doug M. in NJ
- References:
- Vista search including double quote
- From: Vern Rabe
- Re: Vista search including double quote
- From: Retroman
- Re: Vista search including double quote
- From: Vern Rabe
- Vista search including double quote
- Prev by Date: Re: Favorites Problems Help!!!!
- Next by Date: Re: FYI - SP2
- Previous by thread: Re: Vista search including double quote
- Next by thread: Re: Vista search including double quote
- Index(es):
Relevant Pages
|
Loading