Package org.apache.solr.client.solrj.beans

Examples of org.apache.solr.client.solrj.beans.DocumentObjectBinder$DocField


    req.add(docs);
    return req.process(this);
  }

  public UpdateResponse addBeans(Collection<?> beans ) throws SolrServerException, IOException {
    DocumentObjectBinder binder = this.getBinder();
    ArrayList<SolrInputDocument> docs =  new ArrayList<SolrInputDocument>(beans.size());
    for (Object bean : beans) {
      docs.add(binder.toSolrInputDocument(bean));
    }
    return add(docs);
  }
View Full Code Here


   */
  public abstract NamedList<Object> request( final SolrRequest request ) throws SolrServerException, IOException;

  public DocumentObjectBinder getBinder() {
    if(binder == null){
      binder = new DocumentObjectBinder();
    }
    return binder;
  }
View Full Code Here

    return _limitingFacets;
  }
 
  public <T> List<T> getBeans(Class<T> type){
    return solrServer == null ?
      new DocumentObjectBinder().getBeans(type,_results):
      solrServer.getBinder().getBeans(type, _results);
  }
View Full Code Here

    if (!canConvert(Update.class, SolrInputDocument.class)) {
      getConversionService().addConverter(new SolrjConverters.UpdateToSolrInputDocumentConverter());
    }
    if (!canConvert(Object.class, SolrInputDocument.class)) {
      getConversionService().addConverter(
          new SolrjConverters.ObjectToSolrInputDocumentConverter(new DocumentObjectBinder()));
    }
  }
View Full Code Here

  abstract static class DocumentBinderConverter {
    protected final DocumentObjectBinder documentObjectBinder;

    public DocumentBinderConverter(DocumentObjectBinder binder) {
      this.documentObjectBinder = binder != null ? binder : new DocumentObjectBinder();
    }
View Full Code Here

TOP

Related Classes of org.apache.solr.client.solrj.beans.DocumentObjectBinder$DocField

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.