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 Jörn Heid <he...@fh-heilbronn.de> on 2002/05/03 11:24:43 UTC
Confused about Xindice
I'm a little bit disappointed about Xindice. I hope you can help me.
1. On xml.apache.org the Xindice-mailinglists are missing.
2. I couldn't find any way to set the log level of Xindice.
3. What's wrong with that?
C:\Programme\APACHE~1\xml-xindice-1.0\bin>xindice xpath_query -c
/db/ximmo/kruck
/exposes -q /expose
<?xml version="1.0"?>
<expose titel="sss" art="Wohnimmobilie"
xmlns:src="http://xml.apache.org/xindice
/Query" src:col="/db/ximmo/kruck/exposes"
src:key="01ffa7c042af253d000000ed954eb
d59" />
Okay, that's good, let's try another query
C:\Programme\APACHE~1\xml-xindice-1.0\bin>xindice xpath_query -c
/db/ximmo/kruck
/exposes -q /expose[@titel]
<?xml version="1.0"?>
<expose titel="sss" art="Wohnimmobilie"
xmlns:src="http://xml.apache.org/xindice
/Query" src:col="/db/ximmo/kruck/exposes"
src:key="01ffa7c042af253d000000ed954eb
d59" />
Okay, good, too. There seems to be an attribute called titel. It must be
'sss', right?
C:\Programme\APACHE~1\xml-xindice-1.0\bin>xindice xpath_query -c
/db/ximmo/kruck
/exposes -q /expose[@titel='sss']
No result? Can't understand.
4. I'm wondering how anybody can use Xindice with XUpdate. The following
lines
<xu:modifications version="1.0" xmlns:xu="http://www.xmldb.org/xupdate">
<xu:update select="/expose[@titel='sss']/@art">Wohnimmobilie</xu:update>
</xu:modifications>
throws an org.xmldb.api.base.XMLDBException: Query Processing Error.
No more error messages? Error code is 641, but where's the docs about it?
(BTW, I'm not using 1.4).
Please help me, probably I've forgotten to RTFM (although I think I have)...
JOERN
RE: Confused about Xindice
Posted by Jayaram Narayana <na...@india.hp.com>.
hope you;ve taken enough time with xindice before ending up disappointed :-)
on your xupdate query, you have a malformed xml document:
The line
<xu:update select=\"expose...>
is incorrect and illegal.
you may wanna try this: <xu:element name=\"expose...>. (where ... is the
properly formed attribute query.)
for xupdate usability, check this site:
http://www.xmldatabases.org/projects/XUpdate-UseCases/
hope that imoproves your comfort level with xindice.
-nani
-----Original Message-----
From: Jörn Heid [mailto:heid@fh-heilbronn.de]
Sent: Friday, May 03, 2002 2:55 PM
To: xindice-users@xml.apache.org
Subject: Confused about Xindice
I'm a little bit disappointed about Xindice. I hope you can help me.
1. On xml.apache.org the Xindice-mailinglists are missing.
2. I couldn't find any way to set the log level of Xindice.
3. What's wrong with that?
C:\Programme\APACHE~1\xml-xindice-1.0\bin>xindice xpath_query -c
/db/ximmo/kruck
/exposes -q /expose
<?xml version="1.0"?>
<expose titel="sss" art="Wohnimmobilie"
xmlns:src="http://xml.apache.org/xindice
/Query" src:col="/db/ximmo/kruck/exposes"
src:key="01ffa7c042af253d000000ed954eb
d59" />
Okay, that's good, let's try another query
C:\Programme\APACHE~1\xml-xindice-1.0\bin>xindice xpath_query -c
/db/ximmo/kruck
/exposes -q /expose[@titel]
<?xml version="1.0"?>
<expose titel="sss" art="Wohnimmobilie"
xmlns:src="http://xml.apache.org/xindice
/Query" src:col="/db/ximmo/kruck/exposes"
src:key="01ffa7c042af253d000000ed954eb
d59" />
Okay, good, too. There seems to be an attribute called titel. It must be
'sss', right?
C:\Programme\APACHE~1\xml-xindice-1.0\bin>xindice xpath_query -c
/db/ximmo/kruck
/exposes -q /expose[@titel='sss']
No result? Can't understand.
4. I'm wondering how anybody can use Xindice with XUpdate. The following
lines
<xu:modifications version="1.0" xmlns:xu="http://www.xmldb.org/xupdate">
<xu:update select="/expose[@titel='sss']/@art">Wohnimmobilie</xu:update>
</xu:modifications>
throws an org.xmldb.api.base.XMLDBException: Query Processing Error.
No more error messages? Error code is 641, but where's the docs about it?
(BTW, I'm not using 1.4).
Please help me, probably I've forgotten to RTFM (although I think I have)...
JOERN
Re: Init Script
Posted by Kimbro Staken <ks...@xmldatabases.org>.
On Saturday, May 4, 2002, at 07:24 PM, Mark R. Diggory wrote:
> Yes, I'm aware there is a shutdown command in xindiceadmin. However, I'm
> refering specifically to the xindice.server script that that would be
> used to start/stop/restart the service on boot form /etc/rc.d/init.d/...
> It actually uses "kill pid" to stop the server. It suprises me that this
> script is provided and uses "kill" when there is a much better
> xindiceadmin shutdown approach. Is someone developing this script?
Not really, if you have a patch to fix it please send it along.
>
> -Mark Diggory
>
>
> Mark J. Stang wrote:
>
>> I run Xindice on 7.2 and it shutsdown fine. Do you use
>>
>> xindiceadmin shutdown -c /db
>>
>> as the command?
>>
>> HTH,
>>
>> Mark
>>
>> Mark Diggory wrote:
>>
>>> I'm noticing that the provided init script in xindice.server is not
>>> properly shutting down xindice on my Redhat 7.2 machine. Is this an
>>> issue that has been dealt with in the past?
>>>
>>> -Mark Diggory
>>>
>>
>
>
>
>
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
Re: Init Script
Posted by "Mark R. Diggory" <md...@latte.harvard.edu>.
Yes, I'm aware there is a shutdown command in xindiceadmin. However, I'm
refering specifically to the xindice.server script that that would be
used to start/stop/restart the service on boot form /etc/rc.d/init.d/...
It actually uses "kill pid" to stop the server. It suprises me that this
script is provided and uses "kill" when there is a much better
xindiceadmin shutdown approach. Is someone developing this script?
-Mark Diggory
Mark J. Stang wrote:
>I run Xindice on 7.2 and it shutsdown fine. Do you use
>
>xindiceadmin shutdown -c /db
>
>as the command?
>
>HTH,
>
>Mark
>
>Mark Diggory wrote:
>
>>I'm noticing that the provided init script in xindice.server is not
>>properly shutting down xindice on my Redhat 7.2 machine. Is this an
>>issue that has been dealt with in the past?
>>
>>-Mark Diggory
>>
>
Re: Init Script
Posted by "Mark J. Stang" <ma...@earthlink.net>.
I run Xindice on 7.2 and it shutsdown fine. Do you use
xindiceadmin shutdown -c /db
as the command?
HTH,
Mark
Mark Diggory wrote:
> I'm noticing that the provided init script in xindice.server is not
> properly shutting down xindice on my Redhat 7.2 machine. Is this an
> issue that has been dealt with in the past?
>
> -Mark Diggory
Init Script
Posted by Mark Diggory <md...@latte.harvard.edu>.
I'm noticing that the provided init script in xindice.server is not
properly shutting down xindice on my Redhat 7.2 machine. Is this an
issue that has been dealt with in the past?
-Mark Diggory
RE: Confused about Xindice
Posted by Kanarinka <ka...@ikatun.com>.
Hi JOERN --
For #3 -- if you are on a Windows machine, make sure to enclose the
entire query in "" and any strings within the query in ''. That was a
headache for me until I figured it out thanks to the kind people on this
list. Queries without any strings and not enclosed in quotes will still
run on Windows machines (deceptive!)
So your query #3 would be:
C:\Programme\APACHE~1\xml-xindice-1.0\bin>xindice xpath_query -c
/db/ximmo/kruck/exposes -q "/expose[@titel='sss']"
cheers,
catie
-----Original Message-----
From: Jörn Heid [mailto:heid@fh-heilbronn.de]
Sent: Friday, May 03, 2002 5:25 AM
To: xindice-users@xml.apache.org
Subject: Confused about Xindice
I'm a little bit disappointed about Xindice. I hope you can help me.
1. On xml.apache.org the Xindice-mailinglists are missing.
2. I couldn't find any way to set the log level of Xindice.
3. What's wrong with that?
C:\Programme\APACHE~1\xml-xindice-1.0\bin>xindice xpath_query -c
/db/ximmo/kruck
/exposes -q /expose
<?xml version="1.0"?>
<expose titel="sss" art="Wohnimmobilie"
xmlns:src="http://xml.apache.org/xindice
/Query" src:col="/db/ximmo/kruck/exposes"
src:key="01ffa7c042af253d000000ed954eb
d59" />
Okay, that's good, let's try another query
C:\Programme\APACHE~1\xml-xindice-1.0\bin>xindice xpath_query -c
/db/ximmo/kruck
/exposes -q /expose[@titel]
<?xml version="1.0"?>
<expose titel="sss" art="Wohnimmobilie"
xmlns:src="http://xml.apache.org/xindice
/Query" src:col="/db/ximmo/kruck/exposes"
src:key="01ffa7c042af253d000000ed954eb
d59" />
Okay, good, too. There seems to be an attribute called titel. It must be
'sss', right?
C:\Programme\APACHE~1\xml-xindice-1.0\bin>xindice xpath_query -c
/db/ximmo/kruck
/exposes -q /expose[@titel='sss']
No result? Can't understand.
4. I'm wondering how anybody can use Xindice with XUpdate. The following
lines
<xu:modifications version="1.0" xmlns:xu="http://www.xmldb.org/xupdate">
<xu:update select="/expose[@titel='sss']/@art">Wohnimmobilie</xu:update>
</xu:modifications>
throws an org.xmldb.api.base.XMLDBException: Query Processing Error.
No more error messages? Error code is 641, but where's the docs about
it?
(BTW, I'm not using 1.4).
Please help me, probably I've forgotten to RTFM (although I think I
have)...
JOERN