Package org.apache.stanbol.entityhub.yard.solr.model

Examples of org.apache.stanbol.entityhub.yard.solr.model.FieldMapper


        log.debug("Store {}", representation != null ? representation.getId() : null);
        if (representation == null) {
            throw new IllegalArgumentException("The parsed Representation MUST NOT be NULL!");
        }
        SolrServer server = getServer();
        FieldMapper fieldMapper = getFieldMapper();
        long start = System.currentTimeMillis();
        SolrInputDocument inputDocument = createSolrInputDocument(fieldMapper,representation);
        long create = System.currentTimeMillis();
        try {
            UpdateRequest update = new UpdateRequest();
View Full Code Here


        }
        Collection<Representation> added = new HashSet<Representation>();
        long start = System.currentTimeMillis();
        Collection<SolrInputDocument> inputDocs = new HashSet<SolrInputDocument>();
        SolrServer server = getServer();
        FieldMapper fieldMapper = getFieldMapper();
        for (Representation representation : representations) {
            if (representation != null) {
                inputDocs.add(createSolrInputDocument(fieldMapper,representation));
                added.add(representation);
            }
View Full Code Here

            if (representation != null) {
                ids.add(representation.getId());
            }
        }
        SolrServer server = getServer();
        FieldMapper fieldMapper = getFieldMapper();
        int numDocs = ids.size(); // for debuging
        try {
            ids = checkRepresentations(server, fieldMapper,ids); // returns the ids found in the solrIndex
        } catch (SolrServerException e) {
            throw new YardException(
View Full Code Here

TOP

Related Classes of org.apache.stanbol.entityhub.yard.solr.model.FieldMapper

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.