public static class DocIdPusher.Record.Builder extends Object
Constructor and Description |
---|
DocIdPusher.Record.Builder(DocId id)
Create mutable builder for building
DocIdPusher.Record instances. |
DocIdPusher.Record.Builder(DocIdPusher.Record startPoint)
Create mutable builder initialized to values provided by
startPoint . |
Modifier and Type | Method and Description |
---|---|
DocIdPusher.Record |
build()
Creates single instance of Record.
|
DocIdPusher.Record.Builder |
setCrawlImmediately(boolean crawlImmediately)
Inform the GSA that the document has been modified, and that the GSA
should give high priority to recrawling the document.
|
DocIdPusher.Record.Builder |
setCrawlOnce(boolean crawlOnce)
Instruct the GSA to not recrawl the document after the initial
retrieval.
|
DocIdPusher.Record.Builder |
setDeleteFromIndex(boolean b)
Set whether the GSA is being informed the document has been deleted.
|
DocIdPusher.Record.Builder |
setDocId(DocId id)
Set the identifier for the document this record is providing
information for.
|
DocIdPusher.Record.Builder |
setLastModified(Date lastModified)
Provides the last-modified date of the document.
|
DocIdPusher.Record.Builder |
setLock(boolean lock)
Instruct the GSA to "lock" the document into its index.
|
DocIdPusher.Record.Builder |
setResultLink(URI link)
Set the URI to be displayed to the user in search results.
|
public DocIdPusher.Record.Builder(DocId id)
DocIdPusher.Record
instances.id
- non-null
identifier for the document being describedpublic DocIdPusher.Record.Builder(DocIdPusher.Record startPoint)
startPoint
. This is useful for making changes to an existing Record
.public DocIdPusher.Record.Builder setDocId(DocId id)
id
- non-null
identifier for the documentpublic DocIdPusher.Record.Builder setDeleteFromIndex(boolean b)
false
, the GSA is being informed the document exists. The
default is false
.public DocIdPusher.Record.Builder setLastModified(Date lastModified)
null
, the GSA must use
its natural crawling of content to discover changes. The default is
null
.public DocIdPusher.Record.Builder setResultLink(URI link)
null
, then the crawl URI representing the DocId
is used. The
default is null
.public DocIdPusher.Record.Builder setCrawlImmediately(boolean crawlImmediately)
false
.public DocIdPusher.Record.Builder setCrawlOnce(boolean crawlOnce)
false
.public DocIdPusher.Record.Builder setLock(boolean lock)
false
.public DocIdPusher.Record build()