Skip to content

Instantly share code, notes, and snippets.

View zhangyuan's full-sized avatar

Yuan Zhang zhangyuan

  • Xi'an, China
  • 15:39 (UTC +08:00)
View GitHub Profile
# config/initializers/char_converter.rb
require 'uri'
module Support
class CharConverter
def initialize(app)
@app = app
end
{
"query": {
"filtered": {
"query": {
"multi_match": {
"query": "a",
"type": "cross_fields",
"operator": "AND",
"fields": [
"employeeId",