org.nuxeo.ecm.core.search.api.client.querymodel
Class LuceneMinimalEscaper
java.lang.Object
org.nuxeo.ecm.core.search.api.client.querymodel.LuceneMinimalEscaper
- All Implemented Interfaces:
- Escaper
public class LuceneMinimalEscaper
- extends Object
- implements Escaper
A very minimal escaper: does double quotes (putting just one is incorrect), +, -
and !
- Author:
- Georges Racinet
LuceneMinimalEscaper
public LuceneMinimalEscaper()
escape
public String escape(String s)
- Description copied from interface:
Escaper
- Escapes the provided string
- Specified by:
escape
in interface Escaper
- Returns:
- the escaped string
Copyright © 2011 Nuxeo SAS. All Rights Reserved.