hi dirk,
   I have written a BasicSearchQuery class which extends
org.apache.slide.search.SearchQuery.
   It has a String toXML()
 method which creates a xml representation of the query in DASL format.I am
attaching the BasicSearchQuery.java file.
 Please let me know if you think i need to make some changes to the class.
         thanks,
         rajkumar



-----Original Message-----
From: Dirk Verbeeck [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 07, 2001 5:09 PM
To: [EMAIL PROTECTED]
Subject: Client search API (Was: Re: VOTE: xml namespaces)


Raj Kumar wrote:

> hi dirk,
>    Do you have any idea about the  string format of the end user code on
the
> client side
>    that is used to generate the xml for the basic search format or other
> such formats.
>            thanks,
>            rajkumar

Hi Raj

Depends on kind of search of course, for the basicsearch I think that the
programmer would directly write the xml. Maybe we could offer him the same
functionality as the sql package does with preparedstatement, allowing him
to
bind variables.
For the command line client I would give the normal sql syntax to the end
user
and not the xml variant, maybe we can offer this syntax to the programmer
too.

In earlier mails you said something about a BasicseachQuery class to
encapsulate
the query maybe that class can be used on the client as well. You could
compose
your query by adding "where",...  nodes to your search object.
I have experimented with sutch an interface before including a nice gui on
that
but  in the end the novice users preferred a simpler full-text search and
the
experts didn't want a gui but a text box in which they copy/pasted their
queries.
But now most programmers/experts are used to building xml trees so building
a
seach out of search building bloks is not that strange anymore.

Do you already have some code/ideas on that BasicseachQuery class ?


Dirk

BasicSearchQuery.java

Reply via email to