Useful information and scripts for deploying an instance based Solr Cloud in 2 minutes.
Check this repo out on your Google Cloud Shell terminal.
Deploy a secure Solr instance on Google cloud:
$ ./deploy-solr.sh
import datetime | |
import logging | |
import os | |
import socket | |
import time | |
from random import randrange | |
import urllib.parse | |
from google.cloud import ndb |
import datetime | |
from dateutil.relativedelta import relativedelta | |
import re | |
# timewarp.py | |
# Kord Campbell | |
# Copyright 2020, Mitta Corp. | |
# All Rights Reserved. | |
# description: common name to solr timerange converter in python3 |
import datetime | |
import os | |
import requests | |
from google.cloud import ndb | |
import flask_login | |
from lib.util import random_string, random_number, generate_token, random_name | |
from lib.solr import doc_count |
{ | |
"timestamp": "{{timestamp}}", | |
"request_url": "/g", | |
"result": "success", | |
"response": [{ | |
"source_type": "spool", | |
"created": "{{created}}", | |
"updated": "{{updated}}", | |
"name": "{{name}}", | |
"upload_url": "{{upload_url}}", |
import datetime | |
import json | |
import io | |
from google.cloud import ndb | |
from google.cloud import vision | |
from google.cloud import storage | |
from flask import Blueprint, request, make_response, render_template, abort | |
import flask_login |
This script deploys Lucidwork's Fusion 4.1.1 on a Google Cloud instance. Fusion includes Solr 7.4.
Solr 7.4 provides the semantic knowledge graph relatedness() function. This function may be used to extract related topics from datasets which represent a question/answer type structure.
No video for this script exists.
TBD
This gist guide starts a server on your Google Cloud Free account. That server will be configured with Tensorflow. A script and sample notebook will guide you through trying out image recognition.
The instance takes about 10 minutes to launch.
A minimal HTTP server in python. It sends a JSON Hello World for GET requests, and echoes back JSON for POST requests.
python server.py 8009
Starting httpd on port 8009...
curl http://localhost:8009
{"received": "ok", "hello": "world"}
import json | |
import urllib2 | |
import sys | |
try: | |
ip = sys.argv[1] | |
except: | |
print "need an IP" | |
print "usage: python skg-query.py <ip> '<query>'" | |
sys.exit() | |
try: |