Package org.apache.lucene.facet.taxonomy

Examples of org.apache.lucene.facet.taxonomy.InconsistentTaxonomyException


    String t1 = indexReader.getIndexCommit().getUserData().get(DirectoryTaxonomyWriter.INDEX_CREATE_TIME);
    String t2 = r2.getIndexCommit().getUserData().get(DirectoryTaxonomyWriter.INDEX_CREATE_TIME);
    if (t1==null) {
      if (t2!=null) {
        r2.close();
        throw new InconsistentTaxonomyException("Taxonomy was recreated at: "+t2);
      }
    } else if (!t1.equals(t2)) {
      r2.close();
      throw new InconsistentTaxonomyException("Taxonomy was recreated at: "+t2+"  !=  "+t1);
    }
   
      IndexReader oldreader = indexReader;
      // we can close the old searcher, but need to synchronize this
      // so that we don't close it in the middle that another routine
View Full Code Here


    String t1 = indexReader.getIndexCommit().getUserData().get(DirectoryTaxonomyWriter.INDEX_CREATE_TIME);
    String t2 = r2.getIndexCommit().getUserData().get(DirectoryTaxonomyWriter.INDEX_CREATE_TIME);
    if (t1==null) {
      if (t2!=null) {
        r2.close();
        throw new InconsistentTaxonomyException("Taxonomy was recreated at: "+t2);
      }
    } else if (!t1.equals(t2)) {
      r2.close();
      throw new InconsistentTaxonomyException("Taxonomy was recreated at: "+t2+"  !=  "+t1);
    }
   
      IndexReader oldreader = indexReader;
      // we can close the old searcher, but need to synchronize this
      // so that we don't close it in the middle that another routine
View Full Code Here

    String t1 = indexReader.getCommitUserData().get(DirectoryTaxonomyWriter.INDEX_CREATE_TIME);
    String t2 = r2.getCommitUserData().get(DirectoryTaxonomyWriter.INDEX_CREATE_TIME);
    if (t1==null) {
      if (t2!=null) {
        r2.close();
        throw new InconsistentTaxonomyException("Taxonomy was recreated at: "+t2);
      }
    } else if (!t1.equals(t2)) {
      r2.close();
      throw new InconsistentTaxonomyException("Taxonomy was recreated at: "+t2+"  !=  "+t1);
    }
   
      IndexReader oldreader = indexReader;
      // we can close the old searcher, but need to synchronize this
      // so that we don't close it in the middle that another routine
View Full Code Here

TOP

Related Classes of org.apache.lucene.facet.taxonomy.InconsistentTaxonomyException

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.