コード例 #1
0
  private static void addRefSet(
      SolrInputDocument doc, Collection<? extends DcsEntityReference> set, SolrName field) {

    if (set == null || set.size() == 0) {
      return;
    }

    for (DcsEntityReference ref : set) {
      setadd(doc, field, ref.getRef());
    }
  }
コード例 #2
0
  private static Set<DcsEntityReference> getEntityRefSet(SolrDocument doc, EventField field) {
    Set<DcsEntityReference> set = new HashSet<DcsEntityReference>();

    for (String s : setgetAll(doc, field)) {
      DcsEntityReference ref = new DcsEntityReference();

      if (s != null) {
        ref.setRef(s);
      }

      set.add(ref);
    }

    return set;
  }