public class WikipediaPatternsConfidence_Index extends Object
| Modifier and Type | Field and Description |
|---|---|
private org.apache.lucene.analysis.core.WhitespaceAnalyzer |
analyzer |
private org.apache.lucene.store.Directory |
directory |
String |
FIELD_NAME_CONFIDENCE |
String |
FIELD_NAME_DOMAIN |
String |
FIELD_NAME_PATTERNTEXT |
String |
FIELD_NAME_RANGE |
private org.apache.lucene.index.DirectoryReader |
ireader |
private org.apache.lucene.search.IndexSearcher |
isearcher |
private org.apache.lucene.index.IndexWriter |
iwriter |
private org.slf4j.Logger |
log |
private static org.apache.lucene.util.Version |
LUCENE_VERSION |
private int |
numberOfDocsRetrievedFromIndex |
| Constructor and Description |
|---|
WikipediaPatternsConfidence_Index() |
| Modifier and Type | Method and Description |
|---|---|
private void |
addToIndex(String pattern,
String confidence,
String domain,
String range) |
private void |
index() |
private void |
lineToFieldsAndAdd(String line) |
ArrayList<String[]> |
search(String pattern) |
private static final org.apache.lucene.util.Version LUCENE_VERSION
private org.slf4j.Logger log
private int numberOfDocsRetrievedFromIndex
public String FIELD_NAME_PATTERNTEXT
public String FIELD_NAME_CONFIDENCE
public String FIELD_NAME_DOMAIN
public String FIELD_NAME_RANGE
private org.apache.lucene.store.Directory directory
private org.apache.lucene.search.IndexSearcher isearcher
private org.apache.lucene.index.DirectoryReader ireader
private org.apache.lucene.index.IndexWriter iwriter
private org.apache.lucene.analysis.core.WhitespaceAnalyzer analyzer
Copyright © 2016–2017 Pivotal Software, Inc.. All rights reserved.