public class FulltextQueryAnalyzer extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FulltextQueryAnalyzer.FulltextQuery
Structured fulltext query.
|
static class |
FulltextQueryAnalyzer.FulltextQueryException |
static class |
FulltextQueryAnalyzer.Op
Structured fulltext query operator.
|
Constructor and Description |
---|
FulltextQueryAnalyzer() |
Modifier and Type | Method and Description |
---|---|
static FulltextQueryAnalyzer.FulltextQuery |
analyzeFulltextQuery(String query)
Analyzes a fulltext query into a generic datastructure that can be used for each specific database.
|
static boolean |
hasPhrase(FulltextQueryAnalyzer.FulltextQuery ft) |
static void |
translate(FulltextQueryAnalyzer.FulltextQuery ft,
StringBuilder buf,
String or,
String and,
String andNot,
String wordStart,
String wordEnd,
Set<Character> wordCharsReserved,
String phraseStart,
String phraseEnd,
boolean quotePhraseWords) |
static String |
translateFulltext(FulltextQueryAnalyzer.FulltextQuery ft,
String or,
String and,
String andNot,
String phraseQuote)
Translate fulltext into a common pattern used by many servers.
|
static String |
translateFulltext(FulltextQueryAnalyzer.FulltextQuery ft,
String or,
String and,
String andNot,
String wordStart,
String wordEnd,
Set<Character> wordCharsReserved,
String phraseStart,
String phraseEnd,
boolean quotePhraseWords)
Translate fulltext into a common pattern used by many servers.
|
public static void translate(FulltextQueryAnalyzer.FulltextQuery ft, StringBuilder buf, String or, String and, String andNot, String wordStart, String wordEnd, Set<Character> wordCharsReserved, String phraseStart, String phraseEnd, boolean quotePhraseWords)
public static boolean hasPhrase(FulltextQueryAnalyzer.FulltextQuery ft)
public static FulltextQueryAnalyzer.FulltextQuery analyzeFulltextQuery(String query)
List of terms containing only negative words are suppressed. Otherwise negative words are put at the end of the lists of terms.
public static String translateFulltext(FulltextQueryAnalyzer.FulltextQuery ft, String or, String and, String andNot, String phraseQuote)
public static String translateFulltext(FulltextQueryAnalyzer.FulltextQuery ft, String or, String and, String andNot, String wordStart, String wordEnd, Set<Character> wordCharsReserved, String phraseStart, String phraseEnd, boolean quotePhraseWords)
Copyright © 2015 Nuxeo SA. All rights reserved.