Hi,
I am a relatively new user to Xindice and it seems I'm having problems with the combined use of indexing and namespaces. In short, it seems to me that indexes created on namespaced elements do not help at all in making the query any faster.


Here's the details.

o) I have created a collection of xml documents WITHOUT namespaces. I created an index on this collection with:

xindiceadmin ai -c /db/esg/CCSM/all2 -n vnidx -p '[EMAIL PROTECTED]'

and then when I issue a query of the form:

xindice xpath -c /db/esg/CCSM/all2 -q '/netcdf/[EMAIL PROTECTED]"z_t"]'

the results in returned within approximately one second. So far so good.

o) Then I created a collection of xml documents that use the namespace http://www.ucar.edu/schemas/netcdf .
I created an index on this collection with the command:


xindiceadmin ai -c /db/esg/CCSM/all -n vnidx -p \ '[http://www.ucar.edu/schemas/[EMAIL PROTECTED]://www.ucar.edu/schemas/netcdf]name'

(as the instructions on the web seem to suggest),
then I issued my queries:

* xindice xpath -c /db/esg/CCSM/all -s "nc=http://www.ucar.edu/schemas/netcdf"; -q '/nc:netcdf/nc:[EMAIL PROTECTED]"z_t"]'
returns results after a long time (40-50 seconds), as if the indexer did not exist


* xindice xpath -c /db/esg/CCSM/all -q '/[http://www.ucar.edu/schemas/netcdf]netcdf/[http://www.ucar.edu/schemas/[EMAIL PROTECTED]://www.ucar.edu/schemas/netcdf]name="z_t"]'
does not return anything, and the same is true for the queries:
* xindice xpath -c /db/esg/CCSM/all -s "nc=http://www.ucar.edu/schemas/netcdf"; -q '/nc:netcdf/nc:[EMAIL PROTECTED]:name="z_t"]'
* xindice xpath -c /db/esg/CCSM/all -q '/[http://www.ucar.edu/schemas/netcdf]netcdf/[http://www.ucar.edu/schemas/[EMAIL PROTECTED]"z_t"]'



Thanks in advance for any help,

Luca

P.S. I did populate the database after I created the indexes...





Reply via email to