You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by Si...@DCSTRANS.COM on 2002/08/02 09:52:55 UTC

version 1.1 of xindice?

Hi all,

Does anyone have a rough date for a release of xindice 1.1?

The  proper  handling  of  namespaces in xpath queries will really make the
difference for us in terms of being able to use Xindice in production.

Regards,

Simon Godden


Re: version 1.1 of xindice?

Posted by Kimbro Staken <ks...@xmldatabases.org>.
On Friday, August 2, 2002, at 12:52  AM, Simon.Godden@DCSTRANS.COM wrote:

> Hi all,
>
> Does anyone have a rough date for a release of xindice 1.1?
>

I'm thinking we'll probably never see 1.1. The next version will probably 
be 1.5 or 2.0 because of the substantial changes to the server framework 
among other things. We really need help though as most of the current 
committers have gone inactive. When it will be released I don't know. I'm 
working on it, but it's slow going because I'm juggling a lot of things.

> The  proper  handling  of  namespaces in xpath queries will really make 
> the
> difference for us in terms of being able to use Xindice in production.
>
As far as I know namespaces work in 1.0, so what is the problem you're 
seeing?

> Regards,
>
> Simon Godden
>
>
Kimbro Staken
Java and XML Software, Consulting and Writing http://www.xmldatabases.org/
Apache Xindice native XML database http://xml.apache.org/xindice
XML:DB Initiative http://www.xmldb.org


AW: Indexing questions

Posted by "Dr. Klemens Waldhör" <Wa...@t-online.de>.
Thanks ! That makes the difference.

Now 1-2 seconds instead of 8 secs.

Klemens

-----Ursprüngliche Nachricht-----
Von: Carsten Ziegert [mailto:carsten.ziegert@ik.fh-hannover.de] 
Gesendet: Freitag, 2. August 2002 10:39
An: Mailing List dbXML
Betreff: Re: Indexing questions


Am 02.08.2002 10:28 Uhr schrieb "Dr. Klemens Waldhör" unter
<Wa...@t-online.de>:

> I have some questions with regard to indexing. It is not really clear 
> how this works or is intended to work.
> 
> I have a lot of documents in a collection called /db/test/ali
> 
> They all look like this:
> 
> <?xml version='1.0' encoding='UTF-8' ?>
> <tmx version='1.3'>
> <header
> - some info - here.....
> </header>
> <body>
> <tu tuid='1' creationid='20020730T073158Z#1#831020580'>
> <prop type='sourceFile'>xxxxx</prop>
> <prop type='targetFile'>yyyyy</prop>
> <prop type='sourceSegNumber'>1</prop>
> <prop type='targetSegNumber'>1</prop>
> <tuv xml:lang="en" creationid='20020730T073158Z#1#831020580.en'>
> <seg>blabla</seg>
> </tuv>
> 
> <tuv xml:lang="sv" creationid='20020730T073158Z#1#831020580.sv'>
> <seg>blabla</seg>
> </tuv>
> </tu>
> ...
> </body>
> </tmx>
> 
> Now I want to index on creationid.
> 
> I use:
> 
> xindiceadmin.bat ai -c /db/test/ali -n testtucreationid -p 
> /tmx/body/tu[@creationid] -t string and
> xindiceadmin.bat ai -c /db/test/ali -n testtuvcreationid -p
> /tmx/body/tu/tuv[@creationid] -t string
> to create two indexes (I quoted the -p "..." too but there is no
> difference).
> 
> Now when I run the query:
> 
> xindice.bat xpath -c /db/test/ali -q 
> "/tmx/body/tu[@creationid='20020730T073158Z#1#831020580']"
> 
> I see no difference in time if I index the collection or not. Before 
> and after indexing the time needed to perform the query is about 8 
> seconds.
> 
> a) Any idea would could be wrong ? Is the XPATH statement not correct 
> ?

You must not specify the complete path after "-p" because indexers are
set on all document levels. And you should omit the square brackets:

xindiceadmin.bat ai -c /db/test/ali -n testtucreationid -p tu@creationid


> b) Does it matter when the index is created ? Do I have to create the 
> index before the documents are inserted ?

As far as I know that doesn't matter.

> c) I assume that an index is specific to one collection. Can different

> collections have the same name for an index ? I realise that indexes 
> only apply to the current collection, not to its child collections.
> 

No. I experienced an error message when chosing the same name for an
index in two collections.

Carsten


--

Medizinische Hochschule Hannover                    Fachhochschule
Hannover
Abt. Hämatologie und Onkologie     FB Informations- und
Kommunikationswesen
Carl-Neuberg-Straße 1                               Ricklinger Stadtweg
120
30625 Hannover                                               30459
Hannover

                           ++49-511-9296-1650
                    http://summit-bmt.fh-hannover.de






Re: Indexing questions

Posted by Carsten Ziegert <ca...@ik.fh-hannover.de>.
Am 02.08.2002 10:28 Uhr schrieb "Dr. Klemens Waldhör" unter
<Wa...@t-online.de>:

> I have some questions with regard to indexing. It is not really clear
> how this works or is intended to work.
> 
> I have a lot of documents in a collection called /db/test/ali
> 
> They all look like this:
> 
> <?xml version='1.0' encoding='UTF-8' ?>
> <tmx version='1.3'>
> <header
> - some info - here.....
> </header>
> <body>
> <tu tuid='1' creationid='20020730T073158Z#1#831020580'>
> <prop type='sourceFile'>xxxxx</prop>
> <prop type='targetFile'>yyyyy</prop>
> <prop type='sourceSegNumber'>1</prop>
> <prop type='targetSegNumber'>1</prop>
> <tuv xml:lang="en"
> creationid='20020730T073158Z#1#831020580.en'>
> <seg>blabla</seg>
> </tuv>
> 
> <tuv xml:lang="sv"
> creationid='20020730T073158Z#1#831020580.sv'>
> <seg>blabla</seg>
> </tuv>
> </tu>
> ...
> </body>
> </tmx>
> 
> Now I want to index on creationid.
> 
> I use:
> 
> xindiceadmin.bat ai -c /db/test/ali -n testtucreationid -p
> /tmx/body/tu[@creationid] -t string
> and
> xindiceadmin.bat ai -c /db/test/ali -n testtuvcreationid -p
> /tmx/body/tu/tuv[@creationid] -t string
> to create two indexes (I quoted the -p "..." too but there is no
> difference).
> 
> Now when I run the query:
> 
> xindice.bat xpath -c /db/test/ali -q
> "/tmx/body/tu[@creationid='20020730T073158Z#1#831020580']"
> 
> I see no difference in time if I index the collection or not. Before and
> after indexing the time needed to perform the query is about 8 seconds.
> 
> a) Any idea would could be wrong ? Is the XPATH statement not correct ?

You must not specify the complete path after "-p" because indexers are
set on all document levels. And you should omit the square brackets:

xindiceadmin.bat ai -c /db/test/ali -n testtucreationid -p tu@creationid


> b) Does it matter when the index is created ? Do I have to create the
> index before the documents are inserted ?

As far as I know that doesn't matter.

> c) I assume that an index is specific to one collection. Can different
> collections have the same name for an index ? I realise that indexes
> only apply to the current collection, not to its child collections.
> 

No. I experienced an error message when chosing the same name for an index
in two collections.

Carsten


--

Medizinische Hochschule Hannover                    Fachhochschule Hannover
Abt. Hämatologie und Onkologie     FB Informations- und Kommunikationswesen
Carl-Neuberg-Straße 1                               Ricklinger Stadtweg 120
30625 Hannover                                               30459 Hannover

                           ++49-511-9296-1650
                    http://summit-bmt.fh-hannover.de






Indexing questions

Posted by "Dr. Klemens Waldhör" <Wa...@t-online.de>.
I have some questions with regard to indexing. It is not really clear
how this works or is intended to work.

I have a lot of documents in a collection called /db/test/ali

They all look like this:

<?xml version='1.0' encoding='UTF-8' ?>
<tmx version='1.3'>
<header
	- some info - here.....
</header>
<body>
	<tu tuid='1' creationid='20020730T073158Z#1#831020580'>
		<prop type='sourceFile'>xxxxx</prop>
		<prop type='targetFile'>yyyyy</prop>
		<prop type='sourceSegNumber'>1</prop>
		<prop type='targetSegNumber'>1</prop>
		<tuv xml:lang="en"
creationid='20020730T073158Z#1#831020580.en'>
			<seg>blabla</seg>
		</tuv>

		<tuv xml:lang="sv"
creationid='20020730T073158Z#1#831020580.sv'>
			<seg>blabla</seg>
		</tuv>
	</tu>
	...
</body>
</tmx>

Now I want to index on creationid.

I use:

xindiceadmin.bat ai -c /db/test/ali -n testtucreationid -p
/tmx/body/tu[@creationid] -t string
and
xindiceadmin.bat ai -c /db/test/ali -n testtuvcreationid -p
/tmx/body/tu/tuv[@creationid] -t string
to create two indexes (I quoted the -p "..." too but there is no
difference).

Now when I run the query:

xindice.bat xpath -c /db/test/ali -q
"/tmx/body/tu[@creationid='20020730T073158Z#1#831020580']"

I see no difference in time if I index the collection or not. Before and
after indexing the time needed to perform the query is about 8 seconds.

a) Any idea would could be wrong ? Is the XPATH statement not correct ?
b) Does it matter when the index is created ? Do I have to create the
index before the documents are inserted ?
c) I assume that an index is specific to one collection. Can different
collections have the same name for an index ? I realise that indexes
only apply to the current collection, not to its child collections.

Next I noted that the documentations contains different commands for
indexing:
1) add_indexer
2) add_collection_indexer
d) Is there any difference between those two ?

Thanks for your help !

Klemens