/** * Translate fulltext into a common pattern used by many servers. */ public static String translateFulltext(FulltextQuery ft, String or, String and, String andNot, String wordStart, String wordEnd, Set<Character> wordCharsReserved, String phraseStart, String phraseEnd, boolean quotePhraseWords) { StringBuilder buf = new StringBuilder(); translate(ft, buf, or, and, andNot, wordStart, wordEnd, wordCharsReserved, phraseStart, phraseEnd, quotePhraseWords); return buf.toString(); }
/** * Translate fulltext into a common pattern used by many servers. */ public static String translateFulltext(FulltextQuery ft, String or, String and, String andNot, String phraseQuote) { StringBuilder buf = new StringBuilder(); translate(ft, buf, or, and, andNot, "", "", Collections.<Character> emptySet(), phraseQuote, phraseQuote, false); return buf.toString(); }
translate(term, buf, or, and, andNot, wordStart, wordEnd, wordCharsReserved, phraseStart, phraseEnd, quotePhraseWords);