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" <[EMAIL PROTECTED]>
To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to