Package net.sf.clairv.search.pattern

Examples of net.sf.clairv.search.pattern.ResultPattern


      ResourceSuite suite = (ResourceSuite) resourceMap.get(resourceName);
      try {
        Query query = parseQuery(suite.meta, q, args);
        Hits hits = suite.indexSearcher.search(query);
        ResultPatternFactory factory = suite.resultPatternFactory;
        ResultPattern rp = factory.createResultPattern(suite.meta
            .getHitTextPattern());
        return new LocalLuceneQueryResults(query, hits, rp);
      } catch (ParseException e) {
        log.error("Cannot parse the query. Please check the syntax.");
      } catch (IOException e) {
View Full Code Here

TOP

Related Classes of net.sf.clairv.search.pattern.ResultPattern

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.