org.hibernate.search.cfg

## Class FacetMapping

- java.lang.Object
- - org.hibernate.search.cfg.FacetMapping

-     public class FacetMapping
      extends Object

  Configures a faceting field. Equivalent to `@Facet`.
  Author:
    Yoann Rodiere

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `FacetMapping(String fieldName, PropertyDescriptor property, EntityDescriptor entity, SearchMapping mapping)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `FacetMapping` | `encoding(FacetEncodingType encoding)`
    `EntityMapping` | `entity(Class<?> entityType)`
    `FieldMapping` | `field()`
    `FacetMapping` | `name(String fieldName)`
    `NumericFieldMapping` | `numericField()`
    `PropertyMapping` | `property(String name, ElementType type)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### FacetMapping

          public FacetMapping(String fieldName,
                              PropertyDescriptor property,
                              EntityDescriptor entity,
                              SearchMapping mapping)

  - ### Method Detail

    - #### name

          public FacetMapping name(String fieldName)

    - #### encoding

          public FacetMapping encoding(FacetEncodingType encoding)

    - #### field

          public FieldMapping field()

    - #### numericField

          public NumericFieldMapping numericField()

    - #### property

          public PropertyMapping property(String name,
                                          ElementType type)

    - #### entity

          public EntityMapping entity(Class<?> entityType)

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved