/
ScopedAnalyzer.java
45 lines (37 loc) · 1.29 KB
/
ScopedAnalyzer.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
35
36
37
38
39
40
41
42
43
44
45
/*
* 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.analyzer.spi;
/**
* General interface for scope aware analyzers.
*
* @author Guillaume Smet
* @author Yoann Rodiere
*
* @hsearch.experimental This type is under active development as part of the Elasticsearch integration. You
* should be prepared for incompatible changes in future releases.
*/
public interface ScopedAnalyzer {
void close();
/**
* @return A builder for copying the referenced analyzer, altering some scopes as necessary.
*/
Builder startCopy();
/**
* Interface for building scope aware analyzers.
*
* @author Guillaume Smet
* @author Yoann Rodiere
* @hsearch.experimental This type is under active development as part of the Elasticsearch integration. You
* should be prepared for incompatible changes in future releases.
*/
public interface Builder {
AnalyzerReference getGlobalAnalyzerReference();
void setGlobalAnalyzerReference(AnalyzerReference globalAnalyzerReference);
void addAnalyzerReference(String scope, AnalyzerReference analyzerReference);
ScopedAnalyzerReference build();
}
}