public class FieldExpression
extends java.lang.Object
QueryOptions
, to request an
expression computed and returned as the named Field value. For example,
FieldExpression.newBuilder()
.setName("snippet")
.setExpression("snippet(\"good story\", content)")
.build()
binds a snippet expression to a Field named "snippet", which will
be returned in each search result. In this case the returned "snippet"
Field will contain a HTML value containing text snippets of the
"content" field matching the query "good story".
| Modifier and Type | Class and Description |
|---|---|
static class
|
FieldExpression.Builder
A field expression builder.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String
|
getExpression
()
|
java.lang.String
|
getName
()
|
static
FieldExpression.Builder
|
newBuilder
()
|
java.lang.String
|
toString
()
|
public java.lang.String getName()
public java.lang.String getExpression()
public static FieldExpression.Builder newBuilder()
public java.lang.String toString()
toString
in class
java.lang.Object