public interface FulltextParser
From the strings extracted from the document, decides how they should be parsed, split and normalized for fulltext indexing by the underlying engine.
Modifier and Type | Method and Description |
---|---|
String |
parse(String s,
String path)
Parses one property value to normalize the fulltext for the database.
|
void |
parse(String s,
String path,
List<String> strings)
Parses one property value to normalize the fulltext for the database.
|
String |
parse(String s,
String path,
String mimeType,
DocumentLocation documentLocation)
Parses one property value to normalize the fulltext for the database.
|
void |
parse(String s,
String path,
String mimeType,
DocumentLocation documentLocation,
List<String> strings)
Parses one property value to normalize the fulltext for the database.
|
String parse(String s, String path)
The passed path
may be null
if the passed string is not coming from a specific path, for instance
when it was extracted from binary data.
s
- the string to be parsed and normalizedpath
- the abstracted path for the property (where all complex indexes have been replaced by *
), or
null
void parse(String s, String path, List<String> strings)
Like parse(String, String)
but uses the passed list to accumulate words.
s
- the string to be parsed and normalizedpath
- the abstracted path for the property (where all complex indexes have been replaced by *
), or
null
strings
- the list into which normalized words should be accumulatedString parse(String s, String path, String mimeType, DocumentLocation documentLocation)
The passed path
may be null
if the passed string is not coming from a specific path, for instance
when it was extracted from binary data.
s
- the string to be parsed and normalizedpath
- the abstracted path for the property (where all complex indexes have been replaced by *
), or
null
mimeType
- the mimeType
of the string to be parsed and normalized. This may be null
documentLocation
- the documentLocation
of the Document from which the property value string
was extracted. This may be null
void parse(String s, String path, String mimeType, DocumentLocation documentLocation, List<String> strings)
Like parse(String, String)
but uses the passed list to accumulate words.
s
- the string to be parsed and normalizedpath
- the abstracted path for the property (where all complex indexes have been replaced by *
), or
null
mimeType
- the mimeType
of the string to be parsed and normalized. This may be null
documentLocation
- the documentLocation
of the Document from which the property value string
was extracted. This may be null
strings
- the list into which normalized words should be accumulatedCopyright © 2017 Nuxeo. All rights reserved.