|
| 1 | +/* |
| 2 | + * Hibernate Search, full-text search for your domain model |
| 3 | + * |
| 4 | + * License: GNU Lesser General Public License (LGPL), version 2.1 or later |
| 5 | + * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. |
| 6 | + */ |
| 7 | +package org.hibernate.search.engine.search.predicate.dsl; |
| 8 | + |
| 9 | +/** |
| 10 | + * The step in a "match" predicate definition where the value to match can be set |
| 11 | + * (see the superinterface {@link MatchPredicateMatchingStep}), |
| 12 | + * or optional parameters for the last targeted field(s) can be set, |
| 13 | + * or more target fields can be added. |
| 14 | + * |
| 15 | + * @param <S> The "self" type (the actual exposed type of this step). |
| 16 | + * @param <N> The type of the next step. |
| 17 | + * @param <T> The type of the match value. |
| 18 | + * @param <V> The type representing the fields. |
| 19 | + */ |
| 20 | +public interface MatchPredicateFieldMoreGenericStep< |
| 21 | + S extends MatchPredicateFieldMoreGenericStep<?, N, T, V>, |
| 22 | + N extends MatchPredicateOptionsStep<?>, |
| 23 | + T, |
| 24 | + V> |
| 25 | + extends MatchPredicateMatchingGenericStep<N, T>, MultiFieldPredicateFieldBoostStep<S> { |
| 26 | + |
| 27 | + /** |
| 28 | + * Target the given field in the match predicate, |
| 29 | + * as an alternative to the already-targeted fields. |
| 30 | + * <p> |
| 31 | + * See {@link MatchPredicateFieldStep#field(String)} for more information about targeting fields. |
| 32 | + * |
| 33 | + * @param field The field with a <a href="SearchPredicateFactory.html#field-paths">path</a> to the index field |
| 34 | + * to apply the predicate on. |
| 35 | + * @return The next step. |
| 36 | + * |
| 37 | + * @see MatchPredicateFieldStep#field(String) |
| 38 | + */ |
| 39 | + S field(V field); |
| 40 | + |
| 41 | + /** |
| 42 | + * Target the given fields in the match predicate, |
| 43 | + * as an alternative to the already-targeted fields. |
| 44 | + * <p> |
| 45 | + * See {@link MatchPredicateFieldStep#fields(String...)} for more information about targeting fields. |
| 46 | + * |
| 47 | + * @param fieldPaths The fields with <a href="SearchPredicateFactory.html#field-paths">paths</a> to the index fields |
| 48 | + * to apply the predicate on. |
| 49 | + * @return The next step. |
| 50 | + * |
| 51 | + * @see MatchPredicateFieldStep#fields(String...) |
| 52 | + */ |
| 53 | + S fields(V... fieldPaths); |
| 54 | + |
| 55 | +} |
0 commit comments