I am new to xindice. I added a few documents as DOMs and ran xpath query successfully. Then I added an index on the collection and ran the query. It takes same amount of time.
xindiceadmin ai -c /db/test -n BillRefNum -p /INOVICE/BILL_INVOICE.bill_ref_no
The IndexManager should have thrown an error when you tried to create this index, because the pattern that you used is invalid. This is a bug in the IndexManager.
Xindice indexing patterns *are not* XPaths, they are simple element, attribute, or element/attribute combinations.
You should have created your indexes like this:
xindiceadmin ai -c /db/test -n BillRefNum -p BILL_INVOICE.bill_ref_no
Read the Xindice Administrator docs for more information about Indexing patterns.
-- Tom Bradford - http://www.tbradford.org Architect - XQRL (XQuery Engine) - http://www.xqrl.com Apache Xindice (Native XML Database) - http://xml.apache.org/xindice Project Labrador (Web Services Framework) - http://notdotnet.org
