Package no.priv.garshol.duke.databases

Examples of no.priv.garshol.duke.databases.LuceneDatabase


    props.add(new PropertyImpl("ID"));
    props.add(new PropertyImpl("NAME", comp, 0.3, 0.8));
    ConfigurationImpl config = new ConfigurationImpl();
    config.setProperties(props);
    config.setThreshold(0.45);
    db = new LuceneDatabase();
    db.setConfiguration(config);
  }
View Full Code Here


import no.priv.garshol.duke.databases.LuceneDatabase;

public class LuceneDatabaseTest extends DatabaseTest {

  public Database createDatabase(Configuration config) {
    Database db = new LuceneDatabase();
    db.setOverwrite(true);
    db.setConfiguration(config);
    return db;
  }
View Full Code Here

import no.priv.garshol.duke.databases.LuceneDatabase;

public class PersistentLuceneDatabaseTest extends PersistentDatabaseTest {

  public Database createDatabase(Configuration config) {
    LuceneDatabase db = new LuceneDatabase();
    db.setOverwrite(false);
    db.setConfiguration(config);
    db.setPath(tmpdir.getRoot().getAbsolutePath());
    return db;
  }
View Full Code Here

  @Test
  public void testDatabase() throws IOException, SAXException {
    Configuration config = ConfigLoader.load("classpath:config-database.xml");
    Database db = config.getDatabase(false);
    LuceneDatabase lucene = (LuceneDatabase) db;
    assertEquals("/tmp/ct-visma-1", lucene.getPath());
  }
View Full Code Here

TOP

Related Classes of no.priv.garshol.duke.databases.LuceneDatabase

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.