Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Full text search with Sails.js

Is full text search possible with Sails.js and/or Waterline?

I know PostgreSQL supports full text search, but it doesn't look like the PostgreSQL adaptor for Waterline supports that feature as far as I can tell.

Would an efficient full text search be possible with Waterline's contains helper method?

like image 926
user3120986 Avatar asked Dec 19 '13 23:12

user3120986


People also ask

What is a full text search engine server?

Sphinx is a full-text search engine server written in C++ for best performance. It works seamlessly on Windows, Linux, macOS. It indexes all data in SQL or NoSQL database. Sphinx offers a rich API (SphinxAPI) that allows developer to integrate it easily and search using SphinxQL which resample old school SQL.

What is full-text search?

Full-Text Search is a technical term referred to advanced linguistic text query for a database or text documents. The search engine examines all the words stored in a document as it tries to match certain search criteria giving by the user. Many web websites depend on Full-text search to perform advanced search operations.

What are the best full-text search engines for Go language?

Bleve is a full-text search engine written in Go language. It's simple, fast and lightweight. It supports text analysis out of box and many languages like French, Dutch, Turkish, Italian, Persian, Arabic, Russian and many more. HubbleDotNet is .Net based full-text search engine.

What is the sails video tutorial?

This video tutorial is an in-depth guide to building your first Node.js/Sails.js app, taught by the creator of the framework, and following the best practices and conventions our team uses for all our projects. We walk you through setting up your development environment and building our demo app, Ration.


1 Answers

You might be able to do something like this:

Model.find({ class: { 'like': '%history%' }})

Which, according to the documentation, is akin to this:

Model.find({ class: { 'contains': 'history' }})

It would be good for you to give an example of what you are attempting, codewise.

like image 183
RedMage Avatar answered Oct 30 '22 22:10

RedMage