Package org.apache.lucene.search.highlight

Examples of org.apache.lucene.search.highlight.TextFragment


              TokenStream tokenStream = field.tokenStreamValue();
             
              Collection<AnnotationFS> matchingTextAnnotations = new LinkedList<AnnotationFS>();

              QueryScorer scorer = new QueryScorer(query.query(), field.name());
              scorer.startFragment(new TextFragment(
                  new StringBuffer(aCAS.getDocumentText()), 0, 0));
             
              try {
                scorer.init(tokenStream);
               
View Full Code Here

TOP

Related Classes of org.apache.lucene.search.highlight.TextFragment

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.