Hi, I have a query to search for a body content with a date range, which looks something like : "docdate:[1995/12/12 2004/11/12] + "My Content Clause"" Before I execute the query, I'd like to parse the date range first, by doing something : String date = query.toString("docdate"); However, what's returned is : [1995/12/12-2004/11/12] +body:"My Content Clause" though I expected it to be just [1995/12/12-2004/11/12]. With such a query, I do not know the best way to get the fromDate and toDate out of the QueryString, to set to the Date Filter ??? (as the body content may also contain '[' character also). PLE
More>>

Hi,

I have a query to search for a body content with a date range, which looks something like :

"docdate:[1995/12/12 2004/11/12] + "My Content Clause""

Before I execute the query, I'd like to parse the date range first, by doing something :

String date = query.toString("docdate");

However, what's returned is :
[1995/12/12-2004/11/12] +body:"My Content Clause"

though I expected it to be just [1995/12/12-2004/11/12].

With such a query, I do not know the best way to get the fromDate and toDate out of the QueryString, to set to the Date Filter ???
(as the body content may also contain '[' character also).