You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@vxquery.apache.org by Steven Jacobs <sj...@ucr.edu> on 2013/09/16 19:31:47 UTC

Index Patch as .txt

Here is my patch file as a .txt

This patch creates two functions which use a Lucene index,
indexfromcollection and elementpathfromindexunnesting.

indexfromcollection is called as :
indexfromcollection("collectionpath",indexpath")
where "collectionpath" is the location of the folder containing the xml
files
and "indexpath" is an empty folder where you would like to place the index


elementpathfromindexunnesting is called as:
elementpathfromindexunnesting("indexpath","elementpath")
where "indexpath" is the folder where you have created a lucene index of
xml files
and "elementpath" is the path to an element that you would like to return,
e.g., "/bookstore/book"

This unnesting function will return an abvsnode tuple for every document
containing at least one instance of "elementpath" The abvsnode will be node
containing only the elements that satisfy "elementpath"