org.hibernate.search.engine.spi

## Class SearchMappingHelper

- java.lang.Object
- - org.hibernate.search.engine.spi.SearchMappingHelper

-     public class SearchMappingHelper
      extends Object

  Helper to extract the programmatic SearchMapping from a configuration object

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static SearchMapping` | `extractSearchMapping(SearchConfiguration cfg)` This factory method takes a SearchConfiguration object and returns a SearchMapping object which defines the programmatic model for indexing entities and fields.

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

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

- - ### Method Detail

    - #### extractSearchMapping

          public static SearchMapping extractSearchMapping(SearchConfiguration cfg)

      This factory method takes a SearchConfiguration object and returns a SearchMapping object which defines the programmatic model for indexing entities and fields. Throws SearchException: 1) No @Factory found 2) Multiple @Factory found 3) hibernate.search.model_mapping defines a class that cannot be found 4) Cannot invoke the @Factory method to get new instance of SearchMapping
      Parameters:
        `cfg` - the search configuration
      Returns:
        SearchMapping

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