Results scoring/ranking
Thursday, 15 July 2010 · 2 messages
M
Maciej15 Jul 2010 16:37 #
Hello,
I have a collection of XML documents formated with respected to a pre-defined stable schema (WSDLs---Web service definitions). I need to execute (from PHP) search over XML documents.
I wonder whether xBase:
(1) scores relevance of whole matching XML documents and ranks them (in any way) ?
(2) allows to identify (in matching document) XML elements with matched query terms and than navigate to parental/children nodes in XML structure ? (3) provides a way to give more weight to some XML element types during relevance scoring ?
Best regards,
Maciej
CG
Christian Grün15 Jul 2010 17:18 #
Dear Maciej,
Quoted text · Maciej · 3 lines
> I wonder whether xBase: > (1) scores relevance of whole matching XML documents and ranks them (in any > way) ?
BaseX offers support for the W3C XQuery Full-Text Recommendation, which includes scoring. As you may have seen in the GUI frontend, tf-idf is one (optional) scoring model, which is used for calculating scoring values for query results.
Quoted text · Maciej · 2 lines
> (2) allows to identify (in matching document) XML elements with matched > query terms and than navigate to parental/children nodes in XML structure ?
Again (feel free to ask again if I didn't get your point) XQuery should offer you all you need to retrieve the nodes in question.
Quoted text · Maciej · 2 lines
> (3) provides a way to give more weight to some XML element types during > relevance scoring ?
That won't be possible, as BaseX works schema-oblivious (no schema information will be evaluated to rank your results).
Hope this helps,
Christian
Written for BaseX 6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery