/
ElasticsearchSearchIndexesContext.java
34 lines (25 loc) · 1.2 KB
/
ElasticsearchSearchIndexesContext.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* Hibernate Search, full-text search for your domain model
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.search.backend.elasticsearch.search.impl;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
import org.hibernate.search.backend.elasticsearch.document.model.impl.ElasticsearchIndexSchemaNamedPredicateNode;
import org.hibernate.search.engine.backend.types.converter.spi.DocumentIdentifierValueConverter;
import org.hibernate.search.engine.search.common.ValueConvert;
/**
* Information about indexes targeted by search,
* be it in a projection, a predicate, a sort, ...
*/
public interface ElasticsearchSearchIndexesContext {
Collection<ElasticsearchSearchIndexContext> elements();
Set<String> hibernateSearchIndexNames();
Map<String, ElasticsearchSearchIndexContext> mappedTypeNameToIndex();
DocumentIdentifierValueConverter<?> idDslConverter(ValueConvert valueConvert);
ElasticsearchSearchFieldContext field(String absoluteFieldPath);
ElasticsearchIndexSchemaNamedPredicateNode namedPredicate(String absoluteNamedPredicatePath);
}