simonedeponti / azuresearchemulator Goto Github PK
View Code? Open in Web Editor NEWSimple wrapper over SOLR to emulate Azure Search (for development only)
License: MIT License
Simple wrapper over SOLR to emulate Azure Search (for development only)
License: MIT License
The POST /indexes/{index}/docs
route seems to do a query not an insert, so how are you getting data into it?
I think it was just rebranded but I'm unsure if there were breaking api changes also.
I'm trying to find a local development solution for cognitive search, and I'm a little surprised that azure doesn't seem to have any supported solution so far.
Microsoft Windows [Version 10.0.19041.329]
(c) 2020 Microsoft Corporation. All rights reserved.
D:\AICOMSOL\RnD\Search Service\AzureSearchEmulator-master>docker-compose up
Building azsearch
Step 1/11 : FROM python:3.5-alpine
---> d15e7a9f900e
Step 2/11 : RUN mkdir -p /srv/webapp
---> Using cache
---> c6d6431927ab
Step 3/11 : RUN adduser -D -u 1000 webapp
---> Using cache
---> dc0fb5e4efe5
Step 4/11 : WORKDIR /srv/webapp
---> Using cache
---> c3d64544ff27
Step 5/11 : ADD ./setup.py ./setup.py
---> Using cache
---> e57faabb15a4
Step 6/11 : ADD ./AzureSearchEmulator ./AzureSearchEmulator
---> Using cache
---> 123d31af286c
Step 7/11 : RUN chown -R webapp:webapp /srv/webapp
---> Using cache
---> b992cebb7c14
Step 8/11 : RUN pip3 install -e .
---> Running in 8d9699f81cbc
Obtaining file:///srv/webapp
Collecting aiohttp
Downloading aiohttp-3.6.2-py3-none-any.whl (441 kB)
Collecting pyparsing
Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Collecting defusedxml
Downloading defusedxml-0.6.0-py2.py3-none-any.whl (23 kB)
Collecting yarl<2.0,>=1.0
Downloading yarl-1.4.2.tar.gz (163 kB)
Collecting async-timeout<4.0,>=3.0
Downloading async_timeout-3.0.1-py3-none-any.whl (8.2 kB)
Collecting multidict<5.0,>=4.5
Downloading multidict-4.7.6.tar.gz (50 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
Collecting typing-extensions>=3.6.5; python_version < "3.7"
Downloading typing_extensions-3.7.4.2-py3-none-any.whl (22 kB)
Collecting chardet<4.0,>=2.0
Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting idna-ssl>=1.0; python_version < "3.7"
Downloading idna-ssl-1.1.0.tar.gz (3.4 kB)
Collecting attrs>=17.3.0
Downloading attrs-19.3.0-py2.py3-none-any.whl (39 kB)
Collecting idna>=2.0
Downloading idna-2.9-py2.py3-none-any.whl (58 kB)
Building wheels for collected packages: yarl, multidict, idna-ssl
Building wheel for yarl (setup.py): started
Building wheel for yarl (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-bvinrpvm/yarl/setup.py'"'"'; file='"'"'/tmp/pip-install-bvinrpvm/yarl/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-ez3i98my
cwd: /tmp/pip-install-bvinrpvm/yarl/
Complete output (37 lines):
ERROR: Failed building wheel for yarl
Running setup.py clean for yarl
Building wheel for multidict (PEP 517): started
Building wheel for multidict (PEP 517): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python /usr/local/lib/python3.5/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmp9sy04vjd
cwd: /tmp/pip-install-bvinrpvm/multidict
Complete output (43 lines):
ERROR: Failed building wheel for multidict
Building wheel for idna-ssl (setup.py): started
Building wheel for idna-ssl (setup.py): finished with status 'done'
Created wheel for idna-ssl: filename=idna_ssl-1.1.0-py3-none-any.whl size=3161 sha256=a47c5b05b9a22bc1cd14ea4034d859d52fe3b6d20392e1cb9226a96f5b5e85e6
Stored in directory: /root/.cache/pip/wheels/a9/0f/87/af29b8994a28856fb64c270177bbb6716da2690d07af2a2fb7
Successfully built idna-ssl
Failed to build yarl multidict
ERROR: Could not build wheels for multidict which use PEP 517 and cannot be installed directly
ERROR: Service 'azsearch' failed to build: The command '/bin/sh -c pip3 install -e .' returned a non-zero code: 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.