Skip to content

Commit

Permalink
HSEARCH-2208 Accept the Query type instead of its deprecated subtype …
Browse files Browse the repository at this point in the history
…Filter in FullTextFilterDef

Because Filter has been deprecated in favor of Query and will be removed.
  • Loading branch information
yrodiere authored and Sanne committed May 9, 2017
1 parent 7fbc3ec commit 1c4458b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Expand Up @@ -18,7 +18,7 @@
* <p>
* Factory methods currently are used to instantiate the following classes:
* <ul>
* <li>{@link org.apache.lucene.search.Filter}; The factory class is to be given via {@link FullTextFilterDef#impl()}</li>
* <li>{@link org.apache.lucene.search.Query}; The factory class is to be given via {@link FullTextFilterDef#impl()}</li>
* <li>{@link org.hibernate.search.cfg.SearchMapping}; The factory class is to be registered with the bootstrapping
* configuration using the {@link org.hibernate.search.cfg.Environment#MODEL_MAPPING} key</li>
* </ul>
Expand Down
Expand Up @@ -32,18 +32,18 @@
String name();

/**
* The implementation of this filter definition. May be
* The implementation of this filter definition. May be:
* <ul>
* <li>a class implementing {@link org.apache.lucene.search.Filter} or</li>
* <li>a class implementing {@link org.apache.lucene.search.Query} or</li>
* <li>a filter factory class, defining a method annotated with {@link Factory} which has no parameters and returns
* a {@code Filter} instance.</li>
* a {@code Query} instance.</li>
* </ul>
* The given class must define a no-args constructor and a JavaBeans setter method for each parameter to be passed
* via {@link org.hibernate.search.filter.FullTextFilter#setParameter(String, Object)}.
* <p>
* The Lucene filter created by this filter definition must be thread-safe.
*
* @return A class implementing {@code Filter} or a filter factory class
* @return A class implementing {@code Query} or a factory class
*/
Class<?> impl();

Expand Down

0 comments on commit 1c4458b

Please sign in to comment.