This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GIF87a � �����������������, p�C�(��E$ a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const result = await client.search({ | |
| index: 'xxx', | |
| body: { | |
| query: { | |
| function_score: { | |
| random_score: {} | |
| } | |
| }, | |
| size: 5 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const functions = require('firebase-functions') | |
| const { Client } = require('@elastic/elasticsearch') | |
| const config = { | |
| cloud: { | |
| id: 'xxx' | |
| }, | |
| auth: { | |
| username: 'xxx', | |
| password: 'xxx' | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import firebase from 'firebase/app' | |
| export default async (ctx, inject) => { | |
| const options = { | |
| 'functionsLocation': 'asia-northeast1', | |
| 'config': { | |
| 'apiKey': 'xxxx', | |
| 'authDomain': 'xxxx', | |
| 'databaseURL': 'xxxx', | |
| 'projectId': 'xxxx', |