Sentence is incorrectly incremented when token characters end without sentence terminator
Bug #863320 reported by
Paul J. Lucas
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
Low
|
Paul J. Lucas |
Bug Description
The following query:
let $x := <msg>hello world</msg>
return $x contains text "hello" ftand "world" same sentence
incorrectly returns "false" because tokenizer incorrectly increments the sentence number when there are no more characters without encountering a sentence terminating character.
Related branches
lp:~paul-lucas/zorba/bug-863320
- Matthias Brantner: Approve
-
Diff: 40 lines (+7/-2)4 files modifiedChangeLog (+2/-1)
src/runtime/full_text/icu_tokenizer.cpp (+2/-1)
test/rbkt/ExpQueryResults/zorba/fulltext/ft-same-sentence-true-4.xml.res (+1/-0)
test/rbkt/Queries/zorba/fulltext/ft-same-sentence-true-4.xq (+2/-0)
Changed in zorba: | |
importance: | Undecided → Low |
assignee: | nobody → Paul J. Lucas (paul-lucas) |
Changed in zorba: | |
status: | New → Fix Committed |
status: | Fix Committed → Fix Released |
Changed in zorba: | |
status: | Fix Released → Fix Committed |
milestone: | none → 2.1 |
Changed in zorba: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.