Thanks Tom. 
But I still do not know why this does not work.
xindiceadmin xpath -c /db/test -q
/INVOICE/BILL_INVOICE.bill_ref_no[text()="2"]
Also tried using single quotes. Any suggestions? I tried from both command
line and using the java api. 


Thanks,
Sreeni


-----Original Message-----
From: Tom Bradford [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 05, 2002 3:00 PM
To: [email protected]
Subject: Re: indexing/xpath query question


On Monday, March 4, 2002, at 01:13 PM, Sreeni Chippada wrote:
>       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

Reply via email to