Examples of releaseIndexReader()


Examples of org.fao.geonet.kernel.search.SearchManager.releaseIndexReader()

                return element.get("_id");
            }

            return null;
        } finally {
            searchManager.releaseIndexReader(indexAndTaxonomy);
        }
    }

    /**
   * Search for a UUID or an internal identifier parameter and return an
View Full Code Here

Examples of org.fao.geonet.kernel.search.SearchManager.releaseIndexReader()

      Log.error(Geonet.CSW_SEARCH, "  (C) StackTrace:\n" + Util.getStackTrace(e));
      throw new NoApplicableCodeEx("Raised exception while searching metadata : " + e);
        } finally {
            try {
                if (indexAndTaxonomy != null) {
                    sm.releaseIndexReader(indexAndTaxonomy);
                }
            } catch (Exception ex) {
                // eat it as it probably doesn't matter,
                // but say what happened anyway
                Log.error(Geonet.CSW_SEARCH, "Error while releasing index searcher ", ex);
View Full Code Here

Examples of org.fao.geonet.kernel.search.SearchManager.releaseIndexReader()

 
          // Add current DomainValues to the list
          domainValuesList.add(domainValues);
        }
      } finally {
        sm.releaseIndexReader(indexAndTaxonomy);
      }
    }
    return domainValuesList;
   
  }
View Full Code Here

Examples of org.fao.geonet.kernel.search.SearchManager.releaseIndexReader()

                if (uuid != null)
                    response.add(uuid);
            }
            return response;
        } finally {
      sm.releaseIndexReader(indexAndTaxonomy);
    }
  }

  // ---------------------------------------------------------------------------
  // ---
View Full Code Here

Examples of org.fao.geonet.kernel.search.SearchManager.releaseIndexReader()

                        return Result.unhealthy("Lucene search for 1 record returned " + hits.totalHits + " hits.");
                    }
                } catch (Throwable e) {
                    return Result.unhealthy(e);
                } finally {
                    searchMan.releaseIndexReader(indexAndTaxonomy);
                }
            }
        };
    }
}
View Full Code Here

Examples of org.fao.geonet.kernel.search.SearchManager.releaseIndexReader()

                        return Result.healthy();
                    }
                } catch (Throwable e) {
                    return Result.unhealthy(e);
                } finally {
                    searchMan.releaseIndexReader(indexAndTaxonomy);
                }
            }
        };
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.