Examples of fields()


Examples of org.elasticsearch.search.builder.SearchSourceBuilder.fields()

    // solr supports separating by comma or spaces
    if (fl != null) {
      if (!Strings.hasText(fl)) {
        searchSourceBuilder.noFields();
      } else {
        searchSourceBuilder.fields(fl.split("\\s|,"));
      }
    }

    // handle sorting
    if (sort != null) {
View Full Code Here

Examples of org.elasticsearch.search.facet.statistical.StatisticalFacetBuilder.fields()

    Assert.notNull(getName(), "Facet name can't be a null !!!");
    Assert.isTrue(StringUtils.isNotBlank(field) && fields == null, "Please select field or fields on which to build the facets !!!");

    StatisticalFacetBuilder builder = FacetBuilders.statisticalFacet(getName());
    if (ArrayUtils.isNotEmpty(fields)) {
      builder.fields(fields);
    } else {
      builder.field(field);
    }

    return builder;
View Full Code Here

Examples of org.elasticsearch.search.internal.InternalSearchHit.fields()

                        value = field.stringValue();
                    }
                }

                if (searchHit.fieldsOrNull() == null) {
                    searchHit.fields(new HashMap<String, SearchHitField>(2));
                }

                SearchHitField hitField = searchHit.fields().get(name);
                if (hitField == null) {
                    hitField = new InternalSearchHitField(name, new ArrayList<Object>(2));
View Full Code Here

Examples of org.infinispan.schematic.document.Document.fields()

                                              Problems problems ) {
        List<Component> results = new ArrayList<Component>();
        Document components = doc.getDocument(fieldName);
        if (components != null) {
            boolean isArray = components instanceof List;
            for (Field field : components.fields()) {
                Object value = field.getValue();
                if (value instanceof Document) {
                    Document component = (Document)value;
                    String classname = component.getString(FieldName.CLASSNAME);
                    String classpath = component.getString(FieldName.CLASSLOADER); // optional
View Full Code Here

Examples of org.infinispan.schematic.document.EditableDocument.fields()

                // Extract any embedded documents ...
                Object removedContainer = editableDocument.remove(DocumentTranslator.EMBEDDED_DOCUMENTS);
                if (removedContainer instanceof EditableDocument) {
                    EditableDocument embeddedDocs = (EditableDocument)removedContainer;
                    for (Document.Field field : embeddedDocs.fields()) {
                        String id = field.getName();
                        Document doc = field.getValueAsDocument();
                        // Place the embedded document in the local value store ...
                        if (doc != null) localStore().put(id, doc);
                    }
View Full Code Here

Examples of org.jooq.Record.fields()

    }

    @Override
    public final RecordType<?> recordType() {
        Record record = record();
        return record != null ? new Fields<Record>(record.fields()) : null;
    }

    @Override
    public final Exception exception() {
        return exception;
View Full Code Here

Examples of org.springframework.data.mongodb.core.query.Query.fields()

    obj.property3 = "P3";

    template.insert(obj);

    Query query = new Query(Criteria.where("id").is(obj.id));
    query.fields() //
        .include("property2") // real property name
        .include("prop3"); // aliased property name

    ObjectWith3AliasedFields result = template.findOne(query, ObjectWith3AliasedFields.class);
View Full Code Here

Examples of org.vraptor.plugin.hibernate.Validate.fields()

                logger.warn("Method " + method.getName() + " from " + originalType.getName()
                        + " is annotated with @Logic. Although its supported, we suggest you to migrate to @Path.");
            }
            if (method.isAnnotationPresent(Validate.class)) {
                Validate validate = method.getAnnotation(Validate.class);
                if (validate.fields().length != 0) {
                    logger.error("Method " + method.getName() + " from " + originalType.getName()
                            + " is annotated with @Validate with fields. This is not supported.");
                }
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.