An open API service indexing awesome lists of open source software.

https://github.com/diesel-rs/diesel_full_text_search


https://github.com/diesel-rs/diesel_full_text_search

Last synced: 25 days ago
JSON representation

Awesome Lists containing this project

README

        

# diesel_full_text_search

![crates.io](https://img.shields.io/crates/v/diesel_full_text_search.svg)
[![docs](https://docs.rs/diesel_full_text_search/badge.svg)](https://docs.rs/diesel_full_text_search)

Add support for [Postgres full text search](https://www.postgresql.org/docs/current/textsearch.html)
to [diesel](https://diesel.rs/), the safe, extensible ORM and query builder for [Rust](https://www.rust-lang.org/).

This crate also serves as an example of how to extend diesel with database specific features
outside of diesel itself as third party crate.

## Example Usage

```rust

use diesel_full_text_search::*;

let search = "bar";

let query = foo::table.filter(to_tsvector(Foo::description).matches(to_tsquery(search)));
```

For complete examples, see [/examples](./examples).