String as document queries fail

Bug #866907 reported by Paul J. Lucas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
New
Medium
Matthias Brantner

Bug Description

Queries that have a string as the document fail, e.g.:

"One two. Three four." contains text "one" ftand "three" different sentence

i.e., a simple string is to the left-hand-side of "contains text" rather than an XML document.

It fails because a string (being an atomic item) is tokenized into query (not document) tokens.
Normally, tokenizing a string as a query token is the right thing to do.
The code needs some way to distinguish a string being on the left-hand-side.

This bug affects the following XQFTTS tests:

different-sentence-03, 04, 05, 08, 09, 10, 11, 12, 13.

Tags: full-text
Revision history for this message
Paul J. Lucas (paul-lucas) wrote :

Markos -

Can you help with this? Per the description, I somehow need to know when a string is on the left-hand-side of a "contains text" and then synthesize a temporary document so the string is tokenized correctly as document tokens. Any ideas?

- Paul

Revision history for this message
Dana Florescu (dflorescu) wrote :

Matthias, could you please help Paul here ? Thanks

Changed in zorba:
assignee: Markos Zaharioudakis (markos-za) → Matthias Brantner (matthias-brantner)
milestone: none → 2.8
Chris Hillery (ceejatec)
Changed in zorba:
milestone: 2.8 → 2.9
Chris Hillery (ceejatec)
Changed in zorba:
milestone: 2.9 → 3.0
Chris Hillery (ceejatec)
Changed in zorba:
milestone: 3.0 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.