startDate);
> end = new Term("to", endDate);
> RangeQuery endQuery = new RangeQuery(start, end, true);
> query = new BooleanQuery();
> query.add(new BooleanClause(startQuery, BooleanClause.Occur.MUST));
> query.add(new BooleanClause(endQuery, BooleanClause.Occur.MUST));
> }
> return query;
> }
>
> private DateRange getDateRange(String text)
> {
> if (text == null)
> return null;
> else
> {
> DateParser p = new DateParser();
> return p.parseDateRange(text);
> }
> }
>
> }
>
>
--
View this message in context:
http://www.nabble.com/Query-Parsing-in-Custom-Request-Handler-tp21501351p21504363.html
Sent from the Solr - User mailing list archive at Nabble.com.
anClause.Occur.MUST));
}
return query;
}
private DateRange getDateRange(String text)
{
if (text == null)
return null;
else
{
DateParser p = new DateParser();
return p.parseDateRange(text);
}
}
}
--
View this message in context:
http://www.nabble.com/Query-Parsing-in-Custom-Request-Handler-tp21501351p21501351.html
Sent from the Solr - User mailing list archive at Nabble.com.