Giter Site home page Giter Site logo

keats / elasticlunr-rs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mattico/elasticlunr-rs

1.0 3.0 0.0 264 KB

A partial port of elasticlunr to Rust. Intended to be used for generating compatible search indices.

License: Apache License 2.0

Rust 99.11% JavaScript 0.89%

elasticlunr-rs's Introduction

elasticlunr-rs

Build Status Documentation Crates.io Maintenance

A partial port of elasticlunr.js to Rust. Intended to be used for generating compatible search indices.

Example

use std::fs::File;
use std::io::Write;
use elasticlunr::Index;

let mut index = Index::new(&["title", "body"]);
index.add_doc("1", &["This is a title", "This is body text!"]);
// Add more documents...
let mut file = File::create("out.json").unwrap();
file.write_all(index.to_json_pretty().as_bytes());

License

This repository is offered under the terms of the

at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Includes code ported from elasticlunr.js Copyright (C) 2017 by Wei Song, used under license. See LICENSE-JS for details.

Includes stop word lists ported from stopwords-filter Copyright (C) 2012 David J. Brenes, used under license. See LICENSE-WORDS for details.

elasticlunr-rs's People

Contributors

aconradi avatar bwinton avatar eclipseo avatar edmellum avatar eijebong avatar ignatenkobrain avatar keats avatar magurotuna avatar mattico avatar phaiax avatar sakateka avatar tcr avatar xanewok avatar

Stargazers

 avatar

Watchers

 avatar  avatar  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.