public class FulltextParser extends Object
Takes strings extracted from the document, and decides which preprocessed strings to pass to the underlying database for native indexing.
Constructor and Description |
---|
FulltextParser() |
Modifier and Type | Method and Description |
---|---|
ArrayList<String> |
getStrings() |
void |
parse(String s,
String path)
Parses one property value to normalize the fulltext for the database.
|
void |
setStrings(ArrayList<String> strings) |
public void parse(String s, String path)
The default implementation normalizes text to lowercase and removes punctuation.
This can be subclassed. Implementations should append to the
strings
list.
s
- the string to be parsed and normalizedpath
- the abstracted path for the property, where all complex
indexes have been replaced by *
Copyright © 2013 Nuxeo SA. All Rights Reserved.