Skip to content

Commit

Permalink
Add SQL examples for Mroonga and PGroonga
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Feb 9, 2015
1 parent c323dae commit 46644e6
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions fast-fulltext-search-in-ruby-groonga-rroonga-droonga.md
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,34 @@ $ curl "${endpoint}/d/table_create?name=Store&
![](images/mroonga-pgroonga.png){:relative_width="80"}


# SQL w/ fulltext search

Mroonga

~~~
SELECT name,location
FROM Store
WHERE MATCH(name) AGAINST('東京');
~~~
{: lang="sql"}


# SQL w/ fulltext search

PGroonga

~~~
SELECT name,location
FROM Store
WHERE name %% '東京';
SELECT name,location
FROM Store
WHERE name @@ '東京 OR 大阪';
~~~
{: lang="sql"}


# Conclusion

* *Rroonga* (and *GrnMini*) introduces fast fulltext search into your Ruby product instantly
Expand Down

0 comments on commit 46644e6

Please sign in to comment.