Reactivesearch without multi search - reactivesearch

Is it possible to use reactive search without the multi search api. I can not use the multi search api for my Elastic Search cluster.
Currently I've monkeypatched away the _msearch? part of the url and changed the content-type to application/json which works but it's not optimal.

Related

Google Programmable Search Engine: Search only for HTTPS websites

I want to configure my google search engine in order to search only for HTTPS websites. I found something like Google Programmable Search Engine. I am now struggling to configure the HTTPS-pattern of the websites to search (see the screenshots below).
https://www.*:443 also doesn't work.
Maybe there is another way to achieve my goal (without the google programmable search engine)?
The inurl Google Search Operator is what was I looking for.
Lets say I want search with the keywords "buy bitcoin" a https secured website I can type now in the google search field:
buy bitcoin inurl:https://
A negative example will include not https protected marktplaces:
buy bitcoin inurl:http://

Equivalent of URLFetch client side

I am trying to do a simple proof of concept using Google Sheets.
Let's say I have "foo" written in cell A1.
The aim is to POST this value to a RESTful API, then GET this same value, and put it in A2. Some sort of fancy copy-paste.
The go-to solution is URL Fetch, however, the API is on the company's intranet, and therefore can be queries by the client, using jQuery's $.post / $.get, but not via URLFetch, since Google servers can't access the API.
Is there any way to replicate this behavior?
Thanks,

What use is having multiple URL's in a Slack Outgoing Webhook Integration?

Since multiple URL's are possible in the configuration what use or behavior of it would be? Are there any benefits to having multiple URL's instead of only the one?
Currently I only have a single URL in the configuration.

Accessing third part website-ruby

I did some web search and found nothing for the question i have with me, so I'm posting it here. I wants to build a simple Ruby On rails web application which will be used to display the search result from a third party ebsite without any API avilable. (ex: For example when a user type a keyword and click search i need to get the response from google.com and display that to user in my application).
How can i achieve this?
I hope scrapping is not an advised solution.Is there any advisable techniques(like SOAP 0r REST API).
NOTE: The website is a public government website.i need to access the search from my application(It has no built in API for this purpose).
Google has a search api that you can use https://developers.google.com/custom-search/json-api/v1/overview
and there is a gem available.
https://github.com/google/google-api-ruby-client

Ruby http proxy

BACKGROUND
I have a number of Ruby plugins for SiriProxy I have either written myself or use others for voice control of my home (https://github.com/elvisimprsntr?tab=repositories). SiriProxy is basically a MITM proxy which allows one to interject your own actions and responses into the Siri protocol. Unfortunately, Apple made some extensive changes to the Siri protocol which breaks SiriProxy in iOS 7. Siri in iOS 7 uses MPTCP, a new ACE protocol, and possibly different certificates. We have been unsuccessful getting SiriProxy to work with iOS 7. (https://github.com/plamoni/SiriProxy/issues/542)
ALTERNATIVE TO SIRI
Since it is highly unlikely that Apple will ever release a public API for Siri, or automator apps like AutoVoice and Tasker on iOS, I thought an alternative would be use the Google voice search app which is available for both iOS and Android, which there are a number of advantages:
- Speech to Text is performed on the device.
- Does not use MPTCP, HTTPS, or require a login
- The Google voice search simply builds an HTTP GET google search query URL. In some cases the app will speak the response.
- I think the google search uses cookies, but not sure if that is critical.
REQUIREMENTS
I have read a number of posts, forums, etc. looking for the best way to approach this, unfortunately there seems to be a number of ways to approach this.
- Must be implemented in Ruby in order to maximize reuse of existing SiriProxy plugins.
- A proxy which would allow me to parse the URL for keywords in the search query.
- Allow me to simply pass the results of the google query when a keyword match is not made.
- Allow me to replace the google search results my own response.
QUESTION
What I am struggling with in where to begin. I can’t be the first one to have a need for a similar proxy in Ruby. Any suggestions would be welcome.
UPDATE: REF POSTS
Help with HTTP Intercepting Proxy in Ruby?
accessing a website through a proxy using Net::HTTP proxy in ruby
Ruby Eventmachine & HTTP requests via proxy
How to create proxy server in ruby that accepts HTTPS
Ruby MITM proxy
best today is mitmproxy (python) and then communicate between python and ruby somehow (RPC-style) and python runs with mitmdump -s your-script.py

Resources