Bugs item #2790689, was opened at 2009-05-12 16:10
Message generated for change (Tracker Item Submitted) 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: Nobody/Anonymous (nobody)
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)


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

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

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to