
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 FullTextExtractionResponseCreates a response signalling that the given resource should not be indexed.static FullTextExtractionResponseCreates a response signalling that the standard indexing should be used.static FullTextExtractionResponseindexPayload(String thePayload) Creates a response signalling that the given resource should be indexed with the given payload.booleanboolean
-
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 anullpayload! Invoking doNotIndex() signals to the fulltext engine that the fulltext indexer should skip processing this resource, whereas invokingindexPayload(String)with anullpayload 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 anullpayload 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 benullif no payload should be specified for the given resource.
-
indexNormally
Creates a response signalling that the standard indexing should be used. -
isDoNotIndex
-
getPayload
-
isIndexNormally
-