List of usage examples for org.apache.lucene.queryparser.flexible.core.nodes TextableQueryNode getText
CharSequence getText();
From source file:com.sindicetech.siren.qparser.keyword.builders.concise.ConciseNodeBuilderUtil.java
License:Open Source License
/** * Prepend the attribute to the encoded value of the * {@link org.apache.lucene.queryparser.flexible.core.nodes.FieldQueryNode}. A reusable * {@link java.lang.StringBuilder} is required for the operation. *//*from ww w.ja va2s. co m*/ static void prepend(final StringBuilder builder, final String attribute, final TextableQueryNode fieldNode) { // Prepend the attribute to the term String value = prepend(builder, attribute, fieldNode.getText()); // Update the encoded value of the TextableQueryNode fieldNode.setText(value); }