Giter VIP home page Giter VIP logo

terrierserver's Introduction

TerrierServer

Minimal server for terrier search.

Running the package

Syntax:

java [terrier options] -jar terrier-searver-x.x-with-dependencies.jar {hostname} {port}

Example (server on localhost on port 5000, terrier files in /var/terrier-index, running version 1.0):

java -Dterrier.home=/var/terrier-index -jar terrier-server-1.0-jar-with-dependencies.jar localhost 5000

By default, server runs on localhost on port 4567.

Supported Endpoints

_search – POST

Use to perform a search. Parameters:

{
    "query": "this is a query",
    "matchingModelName": "Matching",
    "weightingModelName": "PL2", 
    "controls": {
    
    },
    "properties": {
    
    }
}

Note: all parameters are optional except "query". If you omit a parameter, the default one specified in your terrier.properties file will be used.

Response:

{
    "results": [
        {"_id": "clueweb12-1914wb-16-04060", "_score": 3.67},
        {"_id": "clueweb12-1914wb-02-33676","_score": 3.11}
    ]
}

_stats – GET

This endpoint requires no body. Response:

{
  "fields_lengths": [
    0
  ],
  "documents": 52476,
  "average_length": 834.1046573671774,
  "fields_tokens": [
    0
  ],
  "tokens": 52476,
  "fields": 1,
  "pointers": 13907609,
  "unique_terms": 576447
}

terrierserver's People

Contributors

soldni avatar

Watchers

 avatar

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.