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)
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 accumulatedCopyright © 2015 Nuxeo SA. All rights reserved.