Java 类org.apache.lucene.search.vectorhighlight.FragmentsBuilder 实例源码

项目:search    文件:SolrFragmentsBuilder.java   
/**
 * Return a {@link org.apache.lucene.search.vectorhighlight.FragmentsBuilder} appropriate for this field.
 * 
 * @param params The params controlling Highlighting
 * @return An appropriate {@link org.apache.lucene.search.vectorhighlight.FragmentsBuilder}.
 */
public FragmentsBuilder getFragmentsBuilder(SolrParams params, BoundaryScanner bs) {
  numRequests++;
  params = SolrParams.wrapDefaults(params, defaults);

  return getFragmentsBuilder( params, getPreTags( params, null ), getPostTags( params, null ), bs );
}
项目:search    文件:SimpleFragmentsBuilder.java   
@Override
protected FragmentsBuilder getFragmentsBuilder( SolrParams params,
    String[] preTags, String[] postTags, BoundaryScanner bs ) {
  org.apache.lucene.search.vectorhighlight.SimpleFragmentsBuilder sfb =
    new org.apache.lucene.search.vectorhighlight.SimpleFragmentsBuilder( preTags, postTags, bs );
  sfb.setMultiValuedSeparator( getMultiValuedSeparatorChar( params ) );
  return sfb;
}
项目:search    文件:ScoreOrderFragmentsBuilder.java   
@Override
protected FragmentsBuilder getFragmentsBuilder( SolrParams params,
    String[] preTags, String[] postTags, BoundaryScanner bs ) {
  org.apache.lucene.search.vectorhighlight.ScoreOrderFragmentsBuilder sofb =
    new org.apache.lucene.search.vectorhighlight.ScoreOrderFragmentsBuilder( preTags, postTags, bs );
  sofb.setMultiValuedSeparator( getMultiValuedSeparatorChar( params ) );
  return sofb;
}
项目:NYBC    文件:SolrFragmentsBuilder.java   
/**
 * Return a {@link org.apache.lucene.search.vectorhighlight.FragmentsBuilder} appropriate for this field.
 * 
 * @param params The params controlling Highlighting
 * @return An appropriate {@link org.apache.lucene.search.vectorhighlight.FragmentsBuilder}.
 */
public FragmentsBuilder getFragmentsBuilder(SolrParams params, BoundaryScanner bs) {
  numRequests++;
  params = SolrParams.wrapDefaults(params, defaults);

  return getFragmentsBuilder( params, getPreTags( params, null ), getPostTags( params, null ), bs );
}
项目:NYBC    文件:SimpleFragmentsBuilder.java   
@Override
protected FragmentsBuilder getFragmentsBuilder( SolrParams params,
    String[] preTags, String[] postTags, BoundaryScanner bs ) {
  org.apache.lucene.search.vectorhighlight.SimpleFragmentsBuilder sfb =
    new org.apache.lucene.search.vectorhighlight.SimpleFragmentsBuilder( preTags, postTags, bs );
  sfb.setMultiValuedSeparator( getMultiValuedSeparatorChar( params ) );
  return sfb;
}
项目:NYBC    文件:ScoreOrderFragmentsBuilder.java   
@Override
protected FragmentsBuilder getFragmentsBuilder( SolrParams params,
    String[] preTags, String[] postTags, BoundaryScanner bs ) {
  org.apache.lucene.search.vectorhighlight.ScoreOrderFragmentsBuilder sofb =
    new org.apache.lucene.search.vectorhighlight.ScoreOrderFragmentsBuilder( preTags, postTags, bs );
  sofb.setMultiValuedSeparator( getMultiValuedSeparatorChar( params ) );
  return sofb;
}
项目:search-core    文件:SolrFragmentsBuilder.java   
/**
 * Return a {@link org.apache.lucene.search.vectorhighlight.FragmentsBuilder} appropriate for this field.
 * 
 * @param params The params controlling Highlighting
 * @return An appropriate {@link org.apache.lucene.search.vectorhighlight.FragmentsBuilder}.
 */
public FragmentsBuilder getFragmentsBuilder(SolrParams params, BoundaryScanner bs) {
  numRequests++;
  params = SolrParams.wrapDefaults(params, defaults);

  return getFragmentsBuilder( params, getPreTags( params, null ), getPostTags( params, null ), bs );
}
项目:search-core    文件:SimpleFragmentsBuilder.java   
@Override
protected FragmentsBuilder getFragmentsBuilder( SolrParams params,
    String[] preTags, String[] postTags, BoundaryScanner bs ) {
  org.apache.lucene.search.vectorhighlight.SimpleFragmentsBuilder sfb =
    new org.apache.lucene.search.vectorhighlight.SimpleFragmentsBuilder( preTags, postTags, bs );
  sfb.setMultiValuedSeparator( getMultiValuedSeparatorChar( params ) );
  return sfb;
}
项目:search-core    文件:ScoreOrderFragmentsBuilder.java   
@Override
protected FragmentsBuilder getFragmentsBuilder( SolrParams params,
    String[] preTags, String[] postTags, BoundaryScanner bs ) {
  org.apache.lucene.search.vectorhighlight.ScoreOrderFragmentsBuilder sofb =
    new org.apache.lucene.search.vectorhighlight.ScoreOrderFragmentsBuilder( preTags, postTags, bs );
  sofb.setMultiValuedSeparator( getMultiValuedSeparatorChar( params ) );
  return sofb;
}
项目:read-open-source-code    文件:SolrFragmentsBuilder.java   
/**
 * Return a {@link org.apache.lucene.search.vectorhighlight.FragmentsBuilder} appropriate for this field.
 * 
 * @param params The params controlling Highlighting
 * @return An appropriate {@link org.apache.lucene.search.vectorhighlight.FragmentsBuilder}.
 */
public FragmentsBuilder getFragmentsBuilder(SolrParams params, BoundaryScanner bs) {
  numRequests++;
  params = SolrParams.wrapDefaults(params, defaults);

  return getFragmentsBuilder( params, getPreTags( params, null ), getPostTags( params, null ), bs );
}
项目:read-open-source-code    文件:SimpleFragmentsBuilder.java   
@Override
protected FragmentsBuilder getFragmentsBuilder( SolrParams params,
    String[] preTags, String[] postTags, BoundaryScanner bs ) {
  org.apache.lucene.search.vectorhighlight.SimpleFragmentsBuilder sfb =
    new org.apache.lucene.search.vectorhighlight.SimpleFragmentsBuilder( preTags, postTags, bs );
  sfb.setMultiValuedSeparator( getMultiValuedSeparatorChar( params ) );
  return sfb;
}
项目:read-open-source-code    文件:ScoreOrderFragmentsBuilder.java   
@Override
protected FragmentsBuilder getFragmentsBuilder( SolrParams params,
    String[] preTags, String[] postTags, BoundaryScanner bs ) {
  org.apache.lucene.search.vectorhighlight.ScoreOrderFragmentsBuilder sofb =
    new org.apache.lucene.search.vectorhighlight.ScoreOrderFragmentsBuilder( preTags, postTags, bs );
  sofb.setMultiValuedSeparator( getMultiValuedSeparatorChar( params ) );
  return sofb;
}
项目:read-open-source-code    文件:SolrFragmentsBuilder.java   
/**
 * Return a {@link org.apache.lucene.search.vectorhighlight.FragmentsBuilder} appropriate for this field.
 * 
 * @param params The params controlling Highlighting
 * @return An appropriate {@link org.apache.lucene.search.vectorhighlight.FragmentsBuilder}.
 */
public FragmentsBuilder getFragmentsBuilder(SolrParams params, BoundaryScanner bs) {
  numRequests++;
  params = SolrParams.wrapDefaults(params, defaults);

  return getFragmentsBuilder( params, getPreTags( params, null ), getPostTags( params, null ), bs );
}
项目:read-open-source-code    文件:SimpleFragmentsBuilder.java   
@Override
protected FragmentsBuilder getFragmentsBuilder( SolrParams params,
    String[] preTags, String[] postTags, BoundaryScanner bs ) {
  org.apache.lucene.search.vectorhighlight.SimpleFragmentsBuilder sfb =
    new org.apache.lucene.search.vectorhighlight.SimpleFragmentsBuilder( preTags, postTags, bs );
  sfb.setMultiValuedSeparator( getMultiValuedSeparatorChar( params ) );
  return sfb;
}
项目:read-open-source-code    文件:ScoreOrderFragmentsBuilder.java   
@Override
protected FragmentsBuilder getFragmentsBuilder( SolrParams params,
    String[] preTags, String[] postTags, BoundaryScanner bs ) {
  org.apache.lucene.search.vectorhighlight.ScoreOrderFragmentsBuilder sofb =
    new org.apache.lucene.search.vectorhighlight.ScoreOrderFragmentsBuilder( preTags, postTags, bs );
  sofb.setMultiValuedSeparator( getMultiValuedSeparatorChar( params ) );
  return sofb;
}
项目:t4f-data    文件:FastVectorHighlighterSample.java   
static FastVectorHighlighter getHighlighter() {
    FragListBuilder fragListBuilder = new SimpleFragListBuilder(); // #F
    FragmentsBuilder fragmentBuilder = // #F
    new ScoreOrderFragmentsBuilder( // #F
            BaseFragmentsBuilder.COLORED_PRE_TAGS, // #F
            BaseFragmentsBuilder.COLORED_POST_TAGS); // #F
    return new FastVectorHighlighter(true, true, // #F
            fragListBuilder, fragmentBuilder); // #F
}
项目:search    文件:SolrFragmentsBuilder.java   
protected abstract FragmentsBuilder getFragmentsBuilder( SolrParams params,
String[] preTags, String[] postTags, BoundaryScanner bs );
项目:community-edition-old    文件:AlfrescoSolrHighlighter.java   
protected FragmentsBuilder getFragmentsBuilder(String fieldName, SolrParams params)
{
    BoundaryScanner bs = getBoundaryScanner(fieldName, params);
    return getSolrFragmentsBuilder(fieldName, params).getFragmentsBuilder(params, bs);
}
项目:NYBC    文件:SolrFragmentsBuilder.java   
protected abstract FragmentsBuilder getFragmentsBuilder( SolrParams params,
String[] preTags, String[] postTags, BoundaryScanner bs );
项目:search-core    文件:SolrFragmentsBuilder.java   
protected abstract FragmentsBuilder getFragmentsBuilder( SolrParams params,
String[] preTags, String[] postTags, BoundaryScanner bs );
项目:read-open-source-code    文件:SolrFragmentsBuilder.java   
protected abstract FragmentsBuilder getFragmentsBuilder( SolrParams params,
String[] preTags, String[] postTags, BoundaryScanner bs );
项目:read-open-source-code    文件:SolrFragmentsBuilder.java   
protected abstract FragmentsBuilder getFragmentsBuilder( SolrParams params,
String[] preTags, String[] postTags, BoundaryScanner bs );