encodeSolr: Encode the input for Solr Queries

encodeSolrR Documentation

Encode the input for Solr Queries

Description

Treating all special characters and spaces as literals, backslash escape special characters, and double-quote if necessary.

Usage

encodeSolr(x, ...)

## S4 method for signature 'character'
encodeSolr(x, ...)

Arguments

x

: a string to encode

...

(not yet used.)

Value

the encoded form of the input

Examples

encodeSolr("this & that")

DataONEorg/rdataone documentation built on June 16, 2022, 7:01 p.m.