org.apache.lucene.facet.example.simple
Class SimpleUtils

java.lang.Object
  extended by org.apache.lucene.facet.example.simple.SimpleUtils

public class SimpleUtils
extends Object

Some definitions for the Simple Sample.

WARNING: This API is experimental and might change in incompatible ways in the next release.

Field Summary
static org.apache.lucene.analysis.Analyzer analyzer
          Analyzer used in the simple sample.
static CategoryPath[][] categories
          Categories: categories[D][N] == category-path no.
static String[] docTexts
          sample documents text (for the text field).
static String[] docTitles
          sample documents titles (for the title field).
static String TEXT
          Documents text field.
static String TITLE
          Documents title field.
 
Constructor Summary
SimpleUtils()
           
 
Method Summary
static List<CategoryPath> categoryPathArrayToList(CategoryPath... categoryPaths)
          Utility method: List of category paths out of an array of them...
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEXT

public static final String TEXT
Documents text field.

See Also:
Constant Field Values

TITLE

public static final String TITLE
Documents title field.

See Also:
Constant Field Values

docTexts

public static String[] docTexts
sample documents text (for the text field).


docTitles

public static String[] docTitles
sample documents titles (for the title field).


categories

public static CategoryPath[][] categories
Categories: categories[D][N] == category-path no. N for document no. D.


analyzer

public static final org.apache.lucene.analysis.Analyzer analyzer
Analyzer used in the simple sample.

Constructor Detail

SimpleUtils

public SimpleUtils()
Method Detail

categoryPathArrayToList

public static List<CategoryPath> categoryPathArrayToList(CategoryPath... categoryPaths)
Utility method: List of category paths out of an array of them...

Parameters:
categoryPaths - input array of category paths.


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.