Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Vista search including double quote

Reply
Thread Tools Display Modes

Vista search including double quote

 
 
Vern Rabe
Guest
Posts: n/a

 
      03-05-2009
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
 
Reply With Quote
 
 
 
 
Retroman
Guest
Posts: n/a

 
      03-05-2009
On Thu, 5 Mar 2009 08:05:04 -0800, Vern Rabe
<> 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
 
Reply With Quote
 
Vern Rabe
Guest
Posts: n/a

 
      03-05-2009
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.

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

Vern Rabe


"Retroman" wrote:

> On Thu, 5 Mar 2009 08:05:04 -0800, Vern Rabe
> <> 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
>

 
Reply With Quote
 
Retroman
Guest
Posts: n/a

 
      03-05-2009
On Thu, 5 Mar 2009 13:18:01 -0800, Vern Rabe
<> 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
>> <> 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
>>

 
Reply With Quote
 
H Brown
Guest
Posts: n/a

 
      03-07-2009
You may want to search "folder options" from control panel search pane.
Under folder options select "change search options for files and folder"
this opens a dialog box, under the heading "How to Search" check the box
next to "Use Natural Language Search"
Windows Search indexes text content but not punctuation.

Passed that, Vista search is powerful and its worth the effort to learn its
power. Plus Vista includes setting for power users in advanced search.
Start thinking about a valid Property the file can have and the Value you
are searching for.
e.g. property:value Revision number:5 [<property name>:<value>]
store:file .
You can do the same on Google e.g. filetype:text .


Search "search" from Vista help files, lots of info there.
Be sure to turn on the setting from help "Help setting" To include window
online help and support when searching from help so you get the latest
context available.

Find out more about power searching at the two links below, just for
starters.
http://msdn.microsoft.com/en-us/libr...20(VS.85).aspx

http://msdn.microsoft.com/en-us/library/bb266512.aspx
Good Luck
H Brown

"Vern Rabe" <> wrote in message
news:A8CD6101-DE8B-4961-9D92-...
> 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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vista trouble (including sp1) Bob Weiner Windows Vista General Discussion 0 05-14-2008 12:01 PM
How do I change double click from SEARCH to OPEN on drop down menu ford67 Windows Vista File Management 1 04-29-2008 05:49 AM
My quote of the day kirk jim Windows Vista General Discussion 8 03-22-2007 04:03 PM
Vista Permissions Questions (including Remote Desktop) JeffO Windows Vista General Discussion 4 02-21-2007 03:01 PM
nice quote for vista users..... Seven Windows Vista Installation 6 02-13-2007 12:09 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59