Package org.imixs.workflow.engine.index
Klasse SchemaService
java.lang.Object
org.imixs.workflow.engine.index.SchemaService
The IndexSchemaService provides the index Schema.
The schema is defined by the following properties:
- index.fields - content which will be indexed
- index.fields.analyze - fields indexed as analyzed keyword fields
- index.fields.noanalyze - fields indexed without analyze
- index.fields.store - fields stored in the index
- index.fields.category - fields indexed as categories for a faceted search
- index.operator - default operator
- index.splitwhitespace - split text on whitespace prior to analysis
- Version:
- 1.0
- Autor:
- rsoika
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungescapeSearchTerm(String searchTerm) escapeSearchTerm(String searchTerm, boolean ignoreBracket) This helper method escapes special characters found in a lucene search term.Returns the Lucene schema configurationgetExtendedSearchTerm(String sSearchTerm) Returns the extended search term for a given query.Returns the field list defining the default content of the schema.Returns the analyzed field list of the schema.Returns the field list of category fields.Returns the no-analyze field list of the schema.Returns the field list of items stored in the index.Returns a unique list of all fields part of the index schema.normalizeSearchTerm(String searchTerm) This method normalizes a search term.
-
Felddetails
-
ANONYMOUS
- Siehe auch:
-
DEFAULT_SEARCH_FIELD_LIST
-
DEFAULT_NOANALYZE_FIELD_LIST
-
DEFAULT_STORE_FIELD_LIST
-
DEFAULT_CATEGORY_FIELD_LIST
-
-
Konstruktordetails
-
SchemaService
public SchemaService()
-
-
Methodendetails
-
getFieldList
Returns the field list defining the default content of the schema. The values of those items are only searchable by fulltext search- Gibt zurück:
-
getFieldListAnalyze
Returns the analyzed field list of the schema. The values of those items are searchable by a field search. The values are analyzed.- Gibt zurück:
-
getFieldListNoAnalyze
Returns the no-analyze field list of the schema. The values of those items are searchable by field search. The values are not analyzed.- Gibt zurück:
-
getFieldListStore
Returns the field list of items stored in the index.- Gibt zurück:
-
getUniqueFieldList
Returns a unique list of all fields part of the index schema.- Gibt zurück:
-
getFieldListCategory
Returns the field list of category fields.- Gibt zurück:
-
getConfiguration
Returns the Lucene schema configuration- Gibt zurück:
-
getExtendedSearchTerm
Returns the extended search term for a given query. The search term will be extended with a users roles to test the read access level of each workitem matching the search term.- Parameter:
sSearchTerm-- Gibt zurück:
- extended search term
- Löst aus:
QueryException- in case the searchtem is not understandable.
-
escapeSearchTerm
This helper method escapes special characters found in a lucene search term. The method can be used by clients to prepare a search phrase.Special characters are characters that are part of the lucene query syntax
+ - Ungültige Eingabe: "&"Ungültige Eingabe: "&" || ! ( ) { } [ ] ^ " ~ * ? : \ /Clients should use the method normalizeSearchTerm() instead of escapeSearchTerm() to prepare a user input for a lucene search.
- Parameter:
searchTerm-ignoreBracket- - if true brackes will not be escaped.- Gibt zurück:
- escaped search term
- Siehe auch:
-
escapeSearchTerm
-
normalizeSearchTerm
This method normalizes a search term. The method can be used by clients to prepare a search phrase. The serach term will be lowercased and special characters will be replaced by a blank separatore.g. 'europe/berlin' will be normalized to 'europe berlin'
In case the searchTerm contains numbers the method escapes special characters instead of replacing with a blank:
e.g. 'r-555/333' will be converted into 'r\-555\/333'
Special characters are characters that are part of the lucene query syntax
+ - Ungültige Eingabe: "&"Ungültige Eingabe: "&" || ! ( ) { } [ ] ^ " ~ ? : \ /- Parameter:
searchTerm-- Gibt zurück:
- normalized search term
-