query_completion

command module
v0.0.0-...-2e3142b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

README

Query Completion using Trie and Range Maximum Queries

Go Report Card Build Status

Usage

  1. put data under data/queries.csv

  2. start the server

  3. client uses RPC call to get top K related queries. Example:

    client, err := rpc.DialHTTP("tcp", "localhost:1234")
    if err != nil {
        log.Fatal("dialing:", err)
    }
 
    args := "a"
    var reply []string
    err = client.Call("QueryCompletion.Search", &args, &reply)
    if err != nil {
        log.Fatal("error:", err)
    }
    fmt.Println(reply)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL