public class Record
extends java.lang.Object
A Record represents a result from the search engine.
Each record has all the requested metadata as
specified in fields parameter. Each record also has several special fields.
- `id`: an MD5 hash of the unique URL of this record.
- `url`: the unique url of the record.
- `snippet`: If there is a keyword match, the snippet of text. Matches have <b> tags surrounding them.
- `title`: The title of the record.
- `allMeta`: a map of key value pairs. If a value is multi-assign, there will additionally be a <key>List
item, with all the values.
| Constructor and Description |
|---|
Record() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getAllMeta() |
java.lang.String |
getId() |
java.lang.Object |
getMetaValue(java.lang.String name) |
java.util.List<RefinementMatch> |
getRefinementMatches() |
java.lang.String |
getSnippet() |
java.lang.String |
getTitle()
The title of this record
|
java.lang.String |
getUrl()
This URL is generated by the data upload service and follows the format
http:// |
Record |
setAllMeta(java.util.Map<java.lang.String,java.lang.Object> allMeta) |
Record |
setId(java.lang.String id) |
Record |
setRefinementMatches(java.util.List<RefinementMatch> refinementMatches) |
Record |
setSnippet(java.lang.String snippet) |
Record |
setTitle(java.lang.String title) |
Record |
setUrl(java.lang.String url) |
public java.util.List<RefinementMatch> getRefinementMatches()
public Record setRefinementMatches(java.util.List<RefinementMatch> refinementMatches)
refinementMatches - The list of refinement matchespublic java.lang.String getId()
public Record setId(java.lang.String id)
id - Set the idpublic java.lang.String getUrl()
This URL is generated by the data upload service and follows the format
http://1.com/.html
public Record setUrl(java.lang.String url)
url - Set the record urlpublic java.lang.String getSnippet()
public Record setSnippet(java.lang.String snippet)
snippet - Set the snippetpublic java.lang.Object getMetaValue(java.lang.String name)
name - Get a specific metadata value. Essentially this represents an
attribute of the record data.public java.util.Map<java.lang.String,java.lang.Object> getAllMeta()
public Record setAllMeta(java.util.Map<java.lang.String,java.lang.Object> allMeta)
allMeta - Set the metadata.public java.lang.String getTitle()
The title of this record
public Record setTitle(java.lang.String title)
title - Set the titleCopyright © 2013–2016 GroupBy Inc.. All rights reserved.