loopback-full-text-search
Add Full-text search when using the q
parameter in the where
clause for Loopback 3.
Installation
npm install --save loopback-full-text-search
Usage
Modify your server/component-config.json to include this module and configure the models and fields you want to include in the Full-text search:
"loopback-full-text-search":
And make the Full-text search using the q
parameter in the where
clause:
react-admin
You can use loopback-full-text-search with react-admin.
// in src/books.jsconst BookFilter = <Filter ...props> <TextInput label="Search" source="q" alwaysOn /> </Filter>; const BookList = <List ...props filters=<BookFilter /> > ... </List>;
Don't forget to check loopback-content-range and react-admin-loopback.
License
This library is licensed under the MIT Licence.