Tabnine Logo
OntologyIndexer.createSolrInputDocument
Code IndexAdd Tabnine to your IDE (free)

How to use
createSolrInputDocument
method
in
uk.ac.ebi.intact.dataexchange.psimi.solr.ontology.OntologyIndexer

Best Java code snippets using uk.ac.ebi.intact.dataexchange.psimi.solr.ontology.OntologyIndexer.createSolrInputDocument (Showing top 2 results out of 315)

origin: uk.ac.ebi.intact.dataexchange.psimi/intact-solr

public void index(OntologyDocument ontologyDocument, DocumentFilter documentFilter) throws IntactSolrException {
  if (documentFilter != null && !documentFilter.accept(ontologyDocument)) {
    return;
  }
  SolrInputDocument doc = createSolrInputDocument(ontologyDocument);
  try {
    solrServer.add(doc);
  } catch (Exception e) {
    throw new IntactSolrException("Problem adding ontology document to SOLR server: "+ontologyDocument, e);
  }
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-solr-core

public void index(OntologyDocument ontologyDocument, DocumentFilter documentFilter) throws IntactSolrException {
  if (documentFilter != null && !documentFilter.accept(ontologyDocument)) {
    return;
  }
  SolrInputDocument doc = createSolrInputDocument(ontologyDocument);
  try {
    solrServer.add(doc);
  } catch (Exception e) {
    int numberOfTries = 1;
    boolean isSuccessful = false;
    while (numberOfTries <= this.numberOfTries && !isSuccessful){
      try {
        solrServer.add(doc);
        isSuccessful = true;
      } catch (Exception e2) {
        numberOfTries++;
      }
    }
    if (!isSuccessful){
      throw new IntactSolrException("Problem adding ontology document to SOLR server: "+ontologyDocument, e);
    }
  }
}
uk.ac.ebi.intact.dataexchange.psimi.solr.ontologyOntologyIndexercreateSolrInputDocument

Popular methods of OntologyIndexer

  • <init>
  • indexObo
  • indexOntology
  • addField
  • commitSolr
  • index
  • indexUniprotTaxonomy

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • requestLocationUpdates (LocationManager)
  • Permission (java.security)
    Legacy security code; do not use.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now