Giter Club home page Giter Club logo

wielki-sniffer's Introduction

e9s-s6r (enwikibooks-seacher)

Build Status

Run

$ docker-compose up -d

Note: will be faster if enwikibooks-20200301-pages-articles.xml file is present in datasource directory

Check ELK

Perform HTTP Request (check your elasticsearch IP!)

POST http://192.168.99.106:9200/enwikibooks/_search?pretty
Content-Type: application/json

{"query":{"bool":{"filter":[{"bool":{"filter":[{"bool":{"minimum_should_match":1,"should":[{"match_phrase":{"title":"Cover"}}]}},{"bool":{"minimum_should_match":1,"should":[{"match_phrase":{"categories":"Organic Chemistry"}}]}}]}},{"range":{"@timestamp":{"format":"strict_date_optional_time","gte":"2005-04-29T15:38:52.839Z","lte":"2020-04-29T15:38:52.839Z"}}}],"must":[],"must_not":[],"should":[]}}}

curl:

$ curl 'http://192.168.99.106:9200/enwikibooks/_search?pretty' -H 'Content-Type: application/json' --data '{"query":{"bool":{"filter":[{"bool":{"filter":[{"bool":{"minimum_should_match":1,"should":[{"match_phrase":{"title":"Cover"}}]}},{"bool":{"minimum_should_match":1,"should":[{"match_phrase":{"categories":"Organic Chemistry"}}]}}]}},{"range":{"@timestamp":{"format":"strict_date_optional_time","gte":"2005-04-29T15:38:52.839Z","lte":"2020-04-29T15:38:52.839Z"}}}],"must":[],"must_not":[],"should":[]}}}'

should return:

...
"hits": [{
      "_index": "enwikibooks",
      "_type": "_doc",
      "_id": "5",
      "_score": 1.0,
      "_source": {
        "first_image": "Ethane3D.png",
        "id": "5",
        "@timestamp": "2015-03-30T05:55:04.000Z",
        "categories": ["Organic Chemistry"],
        "text": [" Welcome to the world s foremost open content Organic Chemistry Textbook on the web!  <br> cellpadding \" 5 \"  <br> - <br> Organic Chemistry Go nbsp ; to nbsp ; contents nbsp ; 
...

Frontend icons

    <v-icon>insert_emoticon</v-icon> : https://material.io/resources/icons
    <v-icon>mdi-account-lock</v-icon> : https://materialdesignicons.com/

Swagger

Available at port 8081 eg. http://localhost:8081

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.