Learn R Programming

dataone (version 2.3.0)

encodeSolr: 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 character encodeSolr(x, ...)

Value

the encoded form of the input

Arguments

x

: a string to encode

...

(not yet used.)

Examples

Run this code
encodeSolr("this & that")

Run the code above in your browser using DataLab