Bugs item #2790689, was opened at 2009-05-12 16:10
Message generated for change (Comment added) made by hrode
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2790689&group_id=56967

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: Pathfinder CVS Head
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Henning Rode (hrode)
Assigned to: Jan Flokstra (jflokstra)
Summary: complex scoring query

Initial Comment:
the following query was running fine a few month ago. however, in the current 
version it returns a strange error:

let $nexi := "[about(.//keyword, Musik)]"
let $offset := 0
let $limit := 20

    let $query_v := concat("//video", $nexi)
    let $opt := <TijahOptions ir-model="NLLR" returnNumber="{$limit + 
$offset}"/>
    let $qid_v := tijah:queryall-id($query_v, $opt)
    let $nodes_v := subsequence(tijah:nodes($qid_v), $offset, $limit)
    let $query_s := concat(".//segment", $nexi)
    let $qid_s := tijah:query-id($nodes_v, $query_s, $opt)
    let $uri_s := tijah:nodes($qid_s)/@uri
    return <results>
       {for $rsc in $nodes_v
        let $rsc_seg := $rsc//segme...@uri = $uri_s]
        return <rsc uri="{$rsc/@uri}" score="{tijah:score($qid_v, $rsc)}">
                 {for $seg in $rsc_seg 
                  return <seg uri="{$seg/@uri}" score="{tijah:score($qid_s, 
$seg)}"/>}
               </rsc>}  
       </results> 

henn...@asbjorn:~/work/vitalas/testing> mclient -lx -p42911 
test-vitalas-conceptSearchVideo2.xq 
<results><rsc!ERROR: XML Generation: tmp_522 BAT does not have a 9 head.
MAPI  = mone...@localhost:42911
QUERY = let $nexi := "[about(.//keyword, Musik)]"
ERROR = !ERROR: 
        !ERROR: XML Generation: NULL BAT has a 9 head, but tail is NULL.
        !ERROR: 
        !ERROR: xquery_print_result_main: operation failed.

i have not analysed whether it should be called a pathfinder or pf/tijah bug, 
but the involved tijah-queries run fine, when executed isolated. the error just 
occurs in the last part of the query when new elements are created showing the 
query results.

in order to run the query, one needs to index the attached tiny collection. for 
instance by using this indexing script modified by the path to the collection 
source:

let $collname := "vitalasCollection"
let $dir := "/ufs/henning/work/vitalas/collection/"
let $file := "vitalasIRT10h-normalized2_newh.xml"
return pf:add-doc(concat($dir,$file), $file ,$collname)
<>
let $collname := "vitalasCollection"
let $opt := <TijahOptions stemmer="porter-english"/>
return tijah:create-ft-index($collname, $opt)


----------------------------------------------------------------------

>Comment By: Henning Rode (hrode)
Date: 2009-06-24 16:56

Message:
shortest query that leads to the same error message:
    let $opt := <TijahOptions ir-model="NLLR"/>
    let $qid_s := tijah:queryall-id("//segment[about(.//keyword, Musik)]",
$opt)
    let $nodes_s := tijah:nodes($qid_s)
    return
       for $rsc in $nodes_s
                  return <seg uri="{$rsc/@uri}"/>

----------------------------------------------------------------------

Comment By: Henning Rode (hrode)
Date: 2009-05-13 11:05

Message:
using peter's MIL logging script i created a log-file in order to see,
where exactly the error occurs.
apparently, it happens very much at the end of the query execution during
these lines:

if (not(isnil(a0002))) {
    ERROR (a0002);
} else {
}

however, the output generated earlier seems corrupt as well. 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2790689&group_id=56967

------------------------------------------------------------------------------
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to