
Class FullTextExtractionResponse
java.lang.Object
ca.uhn.fhir.jpa.searchparam.fulltext.FullTextExtractionResponse
This is a response object containing the FullText index data which should be stored during
indexing, or an instruction to skip FullText indexing for the given resource.
- Since:
- 8.4.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic FullTextExtractionResponse
Creates a response signalling that the given resource should not be indexed.static FullTextExtractionResponse
Creates a response signalling that the standard indexing should be used.static FullTextExtractionResponse
indexPayload
(String thePayload) Creates a response signalling that the given resource should be indexed with the given payload.boolean
boolean
-
Method Details
-
doNotIndex
Creates a response signalling that the given resource should not be indexed.Note the difference between invoking doNotIndex() and invoking
indexPayload(String)
with anull
payload! Invoking doNotIndex() signals to the fulltext engine that the fulltext indexer should skip processing this resource, whereas invokingindexPayload(String)
with anull
payload signals to the fulltext engine that any existing row should be cleared. This distinction is important in the case of resource deletions, since invoking #doNotIndex() when deleting a previously fulltext indexed row will leave the previous fulltext index in place, which can waste index space and make queries inefficient. -
indexPayload
Creates a response signalling that the given resource should be indexed with the given payload. Calling this method with anull
payload value is subtly different from callingdoNotIndex()
. This method will clear any existing indexing and write an empty index, wheredoNotIndex()
will not touch any existing index.- Parameters:
thePayload
- The fulltext payload string. May benull
if no payload should be specified for the given resource.
-
indexNormally
Creates a response signalling that the standard indexing should be used. -
isDoNotIndex
-
getPayload
-
isIndexNormally
-