1 package org.apache.lucene.search.vectorhighlight;
4 * Licensed to the Apache Software Foundation (ASF) under one or more
5 * contributor license agreements. See the NOTICE file distributed with
6 * this work for additional information regarding copyright ownership.
7 * The ASF licenses this file to You under the Apache License, Version 2.0
8 * (the "License"); you may not use this file except in compliance with
9 * the License. You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
20 import java.util.List;
22 import org.apache.lucene.search.vectorhighlight.FieldFragList.WeightedFragInfo;
25 * A simple implementation of FragmentsBuilder.
28 public class SimpleFragmentsBuilder extends BaseFragmentsBuilder {
33 public SimpleFragmentsBuilder() {
40 * @param preTags array of pre-tags for markup terms.
41 * @param postTags array of post-tags for markup terms.
43 public SimpleFragmentsBuilder( String[] preTags, String[] postTags ) {
44 super( preTags, postTags );
47 public SimpleFragmentsBuilder( BoundaryScanner bs ) {
51 public SimpleFragmentsBuilder( String[] preTags, String[] postTags, BoundaryScanner bs ) {
52 super( preTags, postTags, bs );
56 * do nothing. return the source list.
59 public List<WeightedFragInfo> getWeightedFragInfoList( List<WeightedFragInfo> src ) {