class FieldSearchParam implements SearchParam {

    public Query getLuceneQuery() {
        QueryParser queryParser = new QueryParser(fieldName, SearchConstants.analyzer);
        if (value.startsWith("*")) {
            queryParser.setAllowLeadingWildcard(true);
        }
        try {
            return queryParser.parse(value);
        } catch (ParseException e) {
            e.printStackTrace();
        }
        return null;
        // return new TermQuery(new Term(fieldName, value));
    }

    public  FieldSearchParam(String fieldName, String value);

}