Coder Social home page Coder Social logo

clio-lite's People

Contributors

jaklinger avatar weisisheng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

clio-lite's Issues

TypeError while running basic usage.

I really liked your blogpost and started trying to use your package. But I get a TypeError when I call clio_search. Specifically, I get the following error:

  File "./query_elastic_search.py", line 23, in <module>
    main()
  File "./query_elastic_search.py", line 18, in main
    total, docs = clio_search(es_url, index=index, query="shotgun")
  File "/home/ubuntu/.pyenv/versions/3.7.0/lib/python3.7/site-packages/clio_lite.py", line 288, in clio_search
    **kwargs)
  File "/home/ubuntu/.pyenv/versions/3.7.0/lib/python3.7/site-packages/clio_lite.py", line 134, in more_like_this
    max_doc_freq = int(max_doc_frac*total)
TypeError: unsupported operand type(s) for *: 'float' and 'dict'

Can this be fixed?

No results for basic search

Hi there,

I have just tried to set up clio-lite and am struggling to get the basic search running.
I have one entry available in Elasticsearch but clio-lite does not return it (it returns "(0, [])").
The search works fine if I run it in Kibana:

GET /customer/_search { "query": {"bool": {"must": [{"multi_match": {"query": "john doe", "fields": []}}], "filter": []}} }

This is my Python code:

from clio_lite import clio_search
url = "http://localhost:9200"
index = "customer"
query = "john doe"
print(clio_search(url=url, index=index, query=query))

What am I doing wrong?
Thanks in advance.

Questions from a blind truffle pig

Assuming one was going to use searchkit at the front-end, I assume one would:

  1. set up the toy ES instance
  2. run the clio-lite script
  3. install the searchkit create-react-app (or should one use the aws lambda version)?
  4. wire the remaining bits up

I would welcome some additional illumination. Thanks in advance!

Installation Assistance

I must be missing something fundamental. Using a virtual env with python 2.7 on ubuntu 20.04...

I am trying to use clio-lite to connect searchkit with an existing ES instance protected with IAM policies only. The deploy.sh script looks for multiple config files in the /config folder but only one exists (range_upper_limit). I tried adding blank files and also individual files with the es domain hyperlink (https://foo) and a toy function name. Also file contents in quotations. Errors return that the 1. the files need an item (aws: error: argument --function-name: expected one argument) or 2. they are not in the right format. Should these be in json format {"function_name":"foo_function"} and {"allowed_endpoints":"foo_endpoint"}?

Thanks in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.