~slub.team/goobi-indexserver/3.x

« back to all changes in this revision

Viewing changes to lucene/contrib/facet/src/examples/org/apache/lucene/facet/example/ExampleResult.java

  • Committer: Sebastian Meyer
  • Date: 2012-08-03 09:12:40 UTC
  • Revision ID: sebastian.meyer@slub-dresden.de-20120803091240-x6861b0vabq1xror
Remove Lucene and Solr source code and add patches instead
Fix Bug #985487: Auto-suggestion for the search interface

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
package org.apache.lucene.facet.example;
2
 
 
3
 
import java.util.List;
4
 
 
5
 
import org.apache.lucene.facet.search.results.FacetResult;
6
 
 
7
 
/**
8
 
 * Licensed to the Apache Software Foundation (ASF) under one or more
9
 
 * contributor license agreements.  See the NOTICE file distributed with
10
 
 * this work for additional information regarding copyright ownership.
11
 
 * The ASF licenses this file to You under the Apache License, Version 2.0
12
 
 * (the "License"); you may not use this file except in compliance with
13
 
 * the License.  You may obtain a copy of the License at
14
 
 *
15
 
 *     http://www.apache.org/licenses/LICENSE-2.0
16
 
 *
17
 
 * Unless required by applicable law or agreed to in writing, software
18
 
 * distributed under the License is distributed on an "AS IS" BASIS,
19
 
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
 
 * See the License for the specific language governing permissions and
21
 
 * limitations under the License.
22
 
 */
23
 
 
24
 
/**
25
 
 * Result of running an example program.
26
 
 * This is a general object for allowing to write a test 
27
 
 * that runs an example and verifies its results.
28
 
 * 
29
 
 * @lucene.experimental
30
 
 */
31
 
public class ExampleResult {
32
 
 
33
 
  private List<FacetResult> facetResults;
34
 
 
35
 
  /**
36
 
   * @return the facet results
37
 
   */
38
 
  public List<FacetResult> getFacetResults() {
39
 
    return facetResults;
40
 
  }
41
 
 
42
 
  /**
43
 
   * @param facetResults the facet results to set
44
 
   */
45
 
  public void setFacetResults(List<FacetResult> facetResults) {
46
 
    this.facetResults = facetResults;
47
 
  }
48
 
 
49
 
}