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 Antonio Jean Claude <jc...@sopragroup.com> on 2004/01/06 17:52:40 UTC

SlideAPI: SearchHelper

Hello again Sliders,

I try to use the SearchQuery (see code below) but I have no clue on how to use the String grammarUri and the Element searchRequestElement.
I looked in the newsgroup archive without success.
Does anyone know how to construct a simple query on name?

Thanks. I'm using Slide2.0

JClaude

Search searchHelper = token.getSearchHelper();
SearchQuery searchQuery = searchHelper.createSearchQuery
                (grammarUri?, searchRequestElement?, slideToken, maxDepth);

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: SlideAPI: SearchHelper

Posted by Christophe <ch...@sword-technologies.com>.
If I remember correctly, searchRequestElement is a xml jdom element 
which contains the complete search criteria. the grammareUri is the 
namespace uri defined in this jdom element.
There is a sample in : 
jakarta-slide\src\webdav\server\org\apache\slide\webdav\method\SearchMethod.java.
So, we are at least 2 (you and me :-) ) who are using Slide without the 
webdav layer.
Now, I have a question for the committers : is it not interesting to 
have less coupling between the webdav layer and this search helper 
class. My point of view is it is better to have a real "data object" 
instead of  a jdom element.
I have no idea on how to build this jdom element if  I'm not using the 
webdav layer. Or at least, maybe someone can point to a document which 
describe how to build those parameters.

Christophe

Antonio Jean Claude wrote:

>Hello again Sliders,
>
>I try to use the SearchQuery (see code below) but I have no clue on how to use the String grammarUri and the Element searchRequestElement.
>I looked in the newsgroup archive without success.
>Does anyone know how to construct a simple query on name?
>
>Thanks. I'm using Slide2.0
>
>JClaude
>
>Search searchHelper = token.getSearchHelper();
>SearchQuery searchQuery = searchHelper.createSearchQuery
>                (grammarUri?, searchRequestElement?, slideToken, maxDepth);
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org