You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Peder Nordvaller <pe...@vitaminapplications.se> on 2004/08/02 13:57:43 UTC
Searching in Slide
Hi, I've been working with slide for a bit and it's been working just fine most of the time. I'm now working with a lot of content and nodes in Slide and the way I've been searching for things is getting sluggish. I am working directly towards the helpers but I'm not using the SearchImpl class because I haven't had time to check it out. When I search I get the children of a node and get their properties, check them for keywords and continue on with the childrens children in the same fashion. This is taking way too much time with some 60k nodes and I have had to do some caching to make it work at all in a useful way.
My questions are: Is there any things I can do to speed up getting information out of nodes (properties etc)?
How fast is the built-in slide Search? Is there any documentation on how to make use of it?
Sincerely, Peder Nordvaller
Re: Searching in Slide
Posted by Stefan Burkard <ne...@burknet.ch>.
hi peder
is it possible that the <and>-element is the problem? i don't know this
query-syntax but if you would say "from x where and y" in sql you get an
error... just guessing
greetings
stefan
Peder Nordvaller wrote:
> I've been trying some with DASL and the helpers (working directly
> towards the Slide API) and have some problems. When doing:
>
> (where search, slideToken and depth are all ok, and searchXML a jdom
> Element as below:)
> search.createSearchQuery("DAV:", searchXML, slideToken, depth);
>
> with the following XML:
>
> <searchrequest>
> <basicsearch>
> <select>
> <prop>
> <href />
> </prop>
> </select>
> <from>
> <scope>
> <href>/files</href>
> <depth>1</depth>
> </scope>
> </from>
> <where>
> <and>
> <eq>
> <prop>displayname</prop>
> <literal>myfile</literal>
> </eq>
> </and>
> </where>
> </basicsearch>
> </searchrequest>
>
> I get the following error:
>
> 01 Sep 2004 00:28:21 - org.apache.slide.common.Domain - WARNING -
> Required element <from> not supplied
> 01 Sep 2004 00:28:21 - org.apache.slide.common.SlideException - DEBUG -
> org.apache.slide.search.BadQueryException: Required element <from> not
> supplied
> at
> org.apache.slide.search.basic.BasicQueryImpl.getScope(BasicQueryImpl.java:386)
>
> at
> org.apache.slide.search.basic.BasicSearchLanguage.parseQuery(BasicSearchLanguage.java:127)
>
> at
> org.apache.slide.search.SearchImpl.createSearchQuery(SearchImpl.java:256)
> at
> org.apache.slide.search.SearchImpl.createSearchQuery(SearchImpl.java:199)
> at
> org.apache.slide.search.SearchImpl.createSearchQuery(SearchImpl.java:175)
> ...
>
> But the from-tag is there just as it should according to the xml spec.
> of DASL, any ideas is gratefully accepted!?
>
> Regards, Peder
>
>
> ----- Original Message ----- From: "Peder Nordvaller"
> <pe...@vitaminapplications.se>
> To: "Slide Users Mailing List" <sl...@jakarta.apache.org>
> Sent: Monday, August 02, 2004 1:57 PM
> Subject: Searching in Slide
>
>
> Hi, I've been working with slide for a bit and it's been working just
> fine most of the time. I'm now working with a lot of content and nodes
> in Slide and the way I've been searching for things is getting sluggish.
> I am working directly towards the helpers but I'm not using the
> SearchImpl class because I haven't had time to check it out. When I
> search I get the children of a node and get their properties, check them
> for keywords and continue on with the childrens children in the same
> fashion. This is taking way too much time with some 60k nodes and I have
> had to do some caching to make it work at all in a useful way.
>
> My questions are: Is there any things I can do to speed up getting
> information out of nodes (properties etc)?
> How fast is the built-in slide Search? Is there any documentation on how
> to make use of it?
>
> Sincerely, Peder Nordvaller
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: Searching in Slide
Posted by Peder Nordvaller <pe...@vitaminapplications.se>.
I've been trying some with DASL and the helpers (working directly towards
the Slide API) and have some problems. When doing:
(where search, slideToken and depth are all ok, and searchXML a jdom Element
as below:)
search.createSearchQuery("DAV:", searchXML, slideToken, depth);
with the following XML:
<searchrequest>
<basicsearch>
<select>
<prop>
<href />
</prop>
</select>
<from>
<scope>
<href>/files</href>
<depth>1</depth>
</scope>
</from>
<where>
<and>
<eq>
<prop>displayname</prop>
<literal>myfile</literal>
</eq>
</and>
</where>
</basicsearch>
</searchrequest>
I get the following error:
01 Sep 2004 00:28:21 - org.apache.slide.common.Domain - WARNING - Required
element <from> not supplied
01 Sep 2004 00:28:21 - org.apache.slide.common.SlideException - DEBUG -
org.apache.slide.search.BadQueryException: Required element <from> not
supplied
at
org.apache.slide.search.basic.BasicQueryImpl.getScope(BasicQueryImpl.java:386)
at
org.apache.slide.search.basic.BasicSearchLanguage.parseQuery(BasicSearchLanguage.java:127)
at org.apache.slide.search.SearchImpl.createSearchQuery(SearchImpl.java:256)
at org.apache.slide.search.SearchImpl.createSearchQuery(SearchImpl.java:199)
at org.apache.slide.search.SearchImpl.createSearchQuery(SearchImpl.java:175)
...
But the from-tag is there just as it should according to the xml spec. of
DASL, any ideas is gratefully accepted!?
Regards, Peder
----- Original Message -----
From: "Peder Nordvaller" <pe...@vitaminapplications.se>
To: "Slide Users Mailing List" <sl...@jakarta.apache.org>
Sent: Monday, August 02, 2004 1:57 PM
Subject: Searching in Slide
Hi, I've been working with slide for a bit and it's been working just fine
most of the time. I'm now working with a lot of content and nodes in Slide
and the way I've been searching for things is getting sluggish. I am working
directly towards the helpers but I'm not using the SearchImpl class because
I haven't had time to check it out. When I search I get the children of a
node and get their properties, check them for keywords and continue on with
the childrens children in the same fashion. This is taking way too much time
with some 60k nodes and I have had to do some caching to make it work at all
in a useful way.
My questions are: Is there any things I can do to speed up getting
information out of nodes (properties etc)?
How fast is the built-in slide Search? Is there any documentation on how to
make use of it?
Sincerely, Peder Nordvaller
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: Searching in Slide
Posted by Peder Nordvaller <pe...@vitaminapplications.se>.
Hi Ryan,
Thank you for the info on searching, will look into DASL and see if it works
for our application! Perhaps you or anyone could answer a couple of more
questions on Slide that I have, or direct me to a place where I can read up
on them?
1) Is there a tool or script that can migrate data between different stores?
For example right now I use the TxXMLFileDescriptorsStore as store for
everything except content, but would like to move it over to a
MySQL/RDBMS-Store (sp?). Is there an easy way to to this?
2) When using the slide realm in tomcat and accessing the webdav layer via
IE on PC I often get two authentication-dialogs - the first one to login to
the computer (as if I were accessing a network share), and after that the
Webdav/HTTP Auth dialog. The first one can just be dismissed by pressing
cancel, but is there a way to stop it from poping up at all? I don't really
see why it would even appear as Webdav is on top of the HTTP-layer and
should only care about the HTTP Auth? Or am I way off?
Sincerely, Peder
----- Original Message -----
From: "Ryan Rhodes" <ry...@hotmail.com>
To: "'Slide Users Mailing List'" <sl...@jakarta.apache.org>; "'Peder
Nordvaller'" <pe...@vitaminapplications.se>
Sent: Monday, August 02, 2004 2:41 PM
Subject: RE: Searching in Slide
> Hi Peder,
>
> Slide supports DASL queries through the webdav servlet. You can query for
> resources by property value, and perform full text search against the
> content.
>
> Text search against content is optimized by a Lucene index. The
> properties
> aren't currently indexed by Lucene, but I think full text search for
> properties still works using a default brute force search. I'm not sure
> about the performance.
>
> There isn't much documentation on search, but take a look at the
> documentation for DASL. Full Text search is done by having a contains
> condition in the where clause.
>
> I think there is also a new DASL implementation for one of the database
> stores.
>
> -Ryan Rhodes
>
> -----Original Message-----
> From: Peder Nordvaller [mailto:peder.nordvaller@vitaminapplications.se]
> Sent: Monday, August 02, 2004 7:58 AM
> To: Slide Users Mailing List
> Subject: Searching in Slide
>
> Hi, I've been working with slide for a bit and it's been working just fine
> most of the time. I'm now working with a lot of content and nodes in Slide
> and the way I've been searching for things is getting sluggish. I am
> working
> directly towards the helpers but I'm not using the SearchImpl class
> because
> I haven't had time to check it out. When I search I get the children of a
> node and get their properties, check them for keywords and continue on
> with
> the childrens children in the same fashion. This is taking way too much
> time
> with some 60k nodes and I have had to do some caching to make it work at
> all
> in a useful way.
>
> My questions are: Is there any things I can do to speed up getting
> information out of nodes (properties etc)?
> How fast is the built-in slide Search? Is there any documentation on how
> to
> make use of it?
>
> Sincerely, Peder Nordvaller
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
RE: Searching in Slide
Posted by Ryan Rhodes <ry...@hotmail.com>.
Hi Peder,
Slide supports DASL queries through the webdav servlet. You can query for
resources by property value, and perform full text search against the
content.
Text search against content is optimized by a Lucene index. The properties
aren't currently indexed by Lucene, but I think full text search for
properties still works using a default brute force search. I'm not sure
about the performance.
There isn't much documentation on search, but take a look at the
documentation for DASL. Full Text search is done by having a contains
condition in the where clause.
I think there is also a new DASL implementation for one of the database
stores.
-Ryan Rhodes
-----Original Message-----
From: Peder Nordvaller [mailto:peder.nordvaller@vitaminapplications.se]
Sent: Monday, August 02, 2004 7:58 AM
To: Slide Users Mailing List
Subject: Searching in Slide
Hi, I've been working with slide for a bit and it's been working just fine
most of the time. I'm now working with a lot of content and nodes in Slide
and the way I've been searching for things is getting sluggish. I am working
directly towards the helpers but I'm not using the SearchImpl class because
I haven't had time to check it out. When I search I get the children of a
node and get their properties, check them for keywords and continue on with
the childrens children in the same fashion. This is taking way too much time
with some 60k nodes and I have had to do some caching to make it work at all
in a useful way.
My questions are: Is there any things I can do to speed up getting
information out of nodes (properties etc)?
How fast is the built-in slide Search? Is there any documentation on how to
make use of it?
Sincerely, Peder Nordvaller
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org