This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 2767 - "phrase" option definition (FTWords)
Summary: "phrase" option definition (FTWords)
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Full Text 1.0 (show other bugs)
Version: Working drafts
Hardware: All Windows XP
: P2 normal
Target Milestone: ---
Assignee: Sihem Amer-Yahia
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-25 01:29 UTC by Joaquin Delgado
Modified: 2006-08-16 17:56 UTC (History)
0 users

See Also:


Attachments

Description Joaquin Delgado 2006-01-25 01:29:13 UTC
In section 3.1.2 (FTWords) the following defines the "phrase" option:

"If the "phrase" option is specified, the sequence of words and phrases is 
used to create a single phrase by concatenating the words and phrases and 
interleaving whitespace. A match occurs, if and only if the resulting phrase 
is matched in the searched text."

According to the definition of word in the specs where we state that "Note 
that consecutive words *need not be separated by either punctuation or space*, 
and words may overlap" so it seams unreasonable to force interleaving of 
whitespace. Similarly a phrase was defined as: "... a sequence of ordered 
words", the rest being implementation dependent.

Thus it should be sufficient to restate more clearly that:

"If the "phrase" option is specified, all words and phrases are used to create 
a sequence of ordered words representing a new phrase. A match occurs, if and 
only if the resulting phrase is matched in the searched text."
Comment 1 Pat Case 2006-01-25 16:06:28 UTC
Good catch. I support adding this rewording to the document.
Comment 2 Sihem Amer-Yahia 2006-01-30 18:37:45 UTC
Replaced

"If the "phrase" option is specified, the sequence of words and phrases is 
used to create a single phrase by concatenating the words and phrases and 
interleaving whitespace. A match occurs, if and only if the resulting phrase 
is matched in the searched text."

with

"If the "phrase" option is specified, all words and phrases are used to create 
a sequence of ordered words representing a new phrase. A match occurs, if and 
only if the resulting phrase is matched in the searched text."