Codota Logo
FulltextQueryAnalyzer$FulltextQuery.isPhrase
Code IndexAdd Codota to your IDE (free)

How to use
isPhrase
method
in
org.nuxeo.ecm.core.storage.FulltextQueryAnalyzer$FulltextQuery

Best Java code snippets using org.nuxeo.ecm.core.storage.FulltextQueryAnalyzer$FulltextQuery.isPhrase (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: org.nuxeo.ecm.core/nuxeo-core-storage

} else {
  String word = ft.word;
  if (ft.isPhrase()) {
    if (quotePhraseWords) {
      boolean first = true;
origin: org.nuxeo.ecm.core/nuxeo-core-storage-sql

if (ft.isPhrase()) {
  return ft;
  newTerms.add(term);
} else { // Op.WORD
  if (term.isPhrase()) {
    newTerms.add(term);
origin: org.nuxeo.ecm.core/nuxeo-core-storage-sql

boolean isPhrase = ft.isPhrase();
if (!isPhrase) {
  newFt = ft;
origin: org.nuxeo.ecm.core/nuxeo-core-storage

public static boolean hasPhrase(FulltextQuery ft) {
  if (ft.op == Op.AND || ft.op == Op.OR) {
    for (FulltextQuery term : ft.terms) {
      if (hasPhrase(term)) {
        return true;
      }
    }
    return false;
  } else {
    return ft.isPhrase();
  }
}
origin: org.nuxeo.ecm.core/nuxeo-core-storage-mongodb

protected static void translateFulltext(FulltextQuery ft, List<String> buf, boolean and) {
  if (ft.op == Op.OR) {
    for (FulltextQuery term : ft.terms) {
      // don't quote words for OR
      translateFulltext(term, buf, false);
    }
  } else if (ft.op == Op.AND) {
    for (FulltextQuery term : ft.terms) {
      // quote words for AND
      translateFulltext(term, buf, true);
    }
  } else {
    String neg;
    if (ft.op == Op.NOTWORD) {
      neg = "-";
    } else { // Op.WORD
      neg = "";
    }
    String word = ft.word.toLowerCase();
    if (ft.isPhrase() || and) {
      buf.add(neg + '"' + word + '"');
    } else {
      buf.add(neg + word);
    }
  }
}
org.nuxeo.ecm.core.storageFulltextQueryAnalyzer$FulltextQueryisPhrase

Javadoc

Checks if the word is a phrase.

Popular methods of FulltextQueryAnalyzer$FulltextQuery

  • <init>

Popular in Java

  • Finding current android device location
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onRequestPermissionsResult (Fragment)
  • setContentView (Activity)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now