org.hibernate.search.elasticsearch.filter

## Class SimpleElasticsearchFilter

- java.lang.Object
- - org.hibernate.search.elasticsearch.filter.SimpleElasticsearchFilter

- All Implemented Interfaces:
    ElasticsearchFilter

      public class SimpleElasticsearchFilter
      extends Object
      implements ElasticsearchFilter

  Simple implementation of a native Elasticsearch full text filter. It only allows to define a static filter by calling the constructor.
  Author:
    Guillaume Smet

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SimpleElasticsearchFilter(String jsonFilter)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getJsonFilter()` Returns the JSON representation of the native filter.

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

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

- - ### Constructor Detail

    - #### SimpleElasticsearchFilter

          public SimpleElasticsearchFilter(String jsonFilter)

  - ### Method Detail

    - #### getJsonFilter

          public String getJsonFilter()

      Description copied from interface: `ElasticsearchFilter`
      Returns the JSON representation of the native filter.
      Specified by:
        `getJsonFilter` in interface `ElasticsearchFilter`
      Returns:
        the JSON representation of the filter.

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