Package com.esri.gpt.catalog.context

Examples of com.esri.gpt.catalog.context.CatalogIndexException


            bHadException = true;
            LogUtil.getLogger().log(Level.SEVERE,"Error publishing document to index.",e);
          }
        }
        if (bHadException) {
          throw new CatalogIndexException("Error publishing document to index.");
        }
      }
     
    } else {
      indexAdapter.deleteDocuments(uuids.toArray(new String[0]));
View Full Code Here


    // ensure the existence of a local resource id
    if (!context.getOperation().getAuthPolicy().getAllowNonLocalResourceIds()) {
      LuceneIndexAdapter adapter = new LuceneIndexAdapter(rContext);
      Timestamp ts = adapter.queryModifiedDate(resourceId);
      if (ts == null) {
        throw new CatalogIndexException("Invalid resource id: "+resourceId);
      }
    }
     
  }
View Full Code Here

      for (String fieldName : indexReader.getFieldNames(IndexReader.FieldOption.ALL)) {
        fields.add(new IFeedRecords.FieldMeta(IFeedRecord.STD_COLLECTION_INDEX + "." + fieldName, "esriFieldTypeString", fieldName));
      }
    } catch (Exception e) {
      String sMsg = "Error accessing index:\n " + Val.chkStr(e.getMessage());
      throw new CatalogIndexException(sMsg, e);
    } finally {
      indexAdapter.closeSearcher(searcher);
    }
  }
View Full Code Here

    try {
      searcher = newSearcher();
      return searcher.maxDoc();
    } catch (Exception e) {
      String sMsg = "Error accessing index:\n "+Val.chkStr(e.getMessage());
      throw new CatalogIndexException(sMsg,e);
    } finally {
      closeSearcher(searcher);
    }
  }
View Full Code Here

          this.getObservers().onDocumentDeleted(uuids);
        }
      }
    } catch (Exception e) {
      String sMsg = "Error deleting document(s):\n "+Val.chkStr(e.getMessage());
      throw new CatalogIndexException(sMsg,e);
    } finally {
      if (this.useSingleSearcher) {
        if (this.getAutoCommitSingleWriter()) {
          closeWriter(writer);
        }
View Full Code Here

      }
      this.getObservers().onDocumentUpdated(document,uuid);
     
    } catch (Exception e) {
      String sMsg = "Error indexing document:\n "+Val.chkStr(e.getMessage());
      throw new CatalogIndexException(sMsg,e);
    } finally {
      try {if (st != null) st.close();} catch (Exception ef) {}
      try {if (stCol != null) stCol.close();} catch (Exception ef) {}
      if (this.useSingleSearcher) {
        if (this.getAutoCommitSingleWriter()) {
View Full Code Here

    try {
      getLogger().info("Emptying Lucene index...");
      writer = newWriter(true);
    } catch (Exception e) {
      String sMsg = "Error purging index:\n "+Val.chkStr(e.getMessage());
      throw new CatalogIndexException(sMsg,e);
    } finally {
      closeWriter(writer);
    }
  }
View Full Code Here

          }
        }
      }
    } catch (IOException e) {
      String sMsg = "Error accessing index:\n "+Val.chkStr(e.getMessage());
      throw new CatalogIndexException(sMsg,e);
    } finally {
      try {if (termDocs != null) termDocs.close();} catch (Exception ef) {}
      closeSearcher(searcher);
    }
    return values.toArray(new String[0]);
View Full Code Here

          tsUpdate = new Timestamp(Long.valueOf(sUpdate));
        }
      }
    } catch (IOException e) {
      String sMsg = "Error accessing index:\n "+Val.chkStr(e.getMessage());
      throw new CatalogIndexException(sMsg,e);
    } finally {
      try {if (termDocs != null) termDocs.close();} catch (Exception ef) {}
      closeSearcher(searcher);
    }
    return tsUpdate;
View Full Code Here

        if (!terms.next()) break;
      }
     
    } catch (Exception e) {
      String sMsg = "Error accessing index:\n "+Val.chkStr(e.getMessage());
      throw new CatalogIndexException(sMsg,e);
    } finally {
      try {if (terms != null) terms.close();} catch (Exception ef) {}
      closeSearcher(searcher);
    }
    return ssUuids;
View Full Code Here

TOP

Related Classes of com.esri.gpt.catalog.context.CatalogIndexException

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.