Ejemplo n.º 1
0
  private static void addSecondaryDataLocationSet(
      SolrInputDocument doc, Set<SeadDataLocation> set) {
    if (set == null || set.size() == 0) {
      return;
    }

    for (SeadDataLocation dl : set) {
      setadd(doc, SeadSolrField.DataLocationField.NAME, dl.getName());
      setadd(doc, SeadSolrField.DataLocationField.TYPE, dl.getType());
      setadd(doc, SeadSolrField.DataLocationField.LOCATION, dl.getLocation());
    }
  }
Ejemplo n.º 2
0
  private static void addPrimaryDataLocation(SolrInputDocument doc, SeadDataLocation dataLocation) {

    setadd(doc, SeadSolrField.PrimaryDataLocationField.NAME, dataLocation.getName());
    setadd(doc, SeadSolrField.PrimaryDataLocationField.TYPE, dataLocation.getType());
    setadd(doc, SeadSolrField.PrimaryDataLocationField.LOCATION, dataLocation.getLocation());
  }