_fieldManager = getFieldManager(new NoStopWordStandardAnalyzer());
parser = new SuperParser(LUCENE_VERSION, _fieldManager, true, null, ScoreType.SUPER, new Term("_primedoc_"));
}
private BaseFieldManager getFieldManager(Analyzer a) throws IOException {
BaseFieldManager fieldManager = new BaseFieldManager(BlurConstants.SUPER, a, new Configuration()) {
@Override
protected boolean tryToStore(FieldTypeDefinition fieldTypeDefinition, String fieldName) {
return true;
}
@Override
protected void tryToLoad(String fieldName) {
}
@Override
protected List<String> getFieldNamesToLoad() throws IOException {
return new ArrayList<String>();
}
};
fieldManager.addColumnDefinition(null, "bin", null, false, "string", true, null);
fieldManager.addColumnDefinitionInt("a", "id_i");
fieldManager.addColumnDefinitionDouble("a", "id_d");
fieldManager.addColumnDefinitionFloat("a", "id_f");
fieldManager.addColumnDefinitionLong("a", "id_l");
fieldManager.addColumnDefinitionDate("a", "id_date", "yyyy-MM-dd");
fieldManager.addColumnDefinitionGisRecursivePrefixTree("a", "id_gis");
return fieldManager;
}