Conveting formula to search string

How I can use following formula as a Database.search string?

@If(@Elements(@Keywords(@Text(CalendarDateTime); @Text(@Explode([03/11/2007 - 03/30/2007])))) = 0; @False; @True);

need to use this string in Java Agent.

Please suggest code for this.

Subject: Conrveting formula to search string

Hi,

the formula should work also in a db.Search function in my opinion.

regards

Marco

Subject: RE: Conrveting formula to search string

String searchString = "@Elements(@Keywords(@Text(CalendarDateTime); @Text(@Explode([02/11/2008-02/12/2008])))) > 0 ";

DocumentCollection dc = db.search(SearchString);

This works perfectly.

Thank you for replying.