Package org.platformlayer.service.solr.model

Examples of org.platformlayer.service.solr.model.SolrSchemaField


public class SolrServiceProvider extends ServiceProviderBase {

  @Override
  public void beforeCreateItem(ItemBase item) throws OpsException {
    if (item instanceof SolrSchemaField) {
      SolrSchemaField field = (SolrSchemaField) item;
      if (field.name == null) {
        field.name = field.getId();
      }

      if (field.name == null) {
        throw new OpsException("name is required");
      }
View Full Code Here


    String url = "http://" + socketAddress.getAddress().getHostAddress() + ":" + socketAddress.getPort() + "/solr";
    testSolr(url);

    String customFieldKey = "customfield1";

    SolrSchemaField field = new SolrSchemaField();
    field.name = customFieldKey;
    field.type = "text_general";
    field.getTags().add(Tag.buildParentTag(solr.getKey()));

    // TODO: Our scoping of keys is problematic now...
    // If two clusters both have the same key "customfield1", they can't have the same ID
    field = putItem(id + "-" + customFieldKey, field);
    waitForHealthy(field);
View Full Code Here

TOP

Related Classes of org.platformlayer.service.solr.model.SolrSchemaField

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.