Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zdk committed Jul 2, 2018
1 parent b4d4bd8 commit a262531
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions README.md
@@ -1,15 +1,16 @@
pg-search-thai
============================

pg-search-thai is Thai Full Text Search extension for _PostgreSQL_.
pg-search-thai is full text search _PostgreSQL_ extension for Thai Language.

The main purpuse is to:
Its main purpose is:

Use PostgreSQL Full Text Search for Thai language (which spaces were not used to separate words )
To enable PostgreSQL Full Text Search in Thai language (Due to Thai Language does not use spaces to separate words)

This extension requires Thai word breaking routine in LibThai, libiconv for character encoding conversion (that requires by LibThai word breaking as it can only do tis-620 character encoding word segmentation) and
a pre-installed postgresql (which is required for C compiler to find `pg_config` in order to build this extension).
If LibThai is _not_ installed on your system, then please [check out](http://linux.thai.net/projects/libthai) for installation details or read the next installation section.
## Prerequisite

libthai, libiconv - this pg extension requires Thai word breaking functionality from the popular `LibThai` and libiconv.
postgresql - `pg_config` in order to build this extension.

## Installation

Expand All @@ -27,10 +28,6 @@ If LibThai is _not_ installed on your system, then please [check out](http://lin

```cd thai_parser; make; make install```

- And, for Debian/Ubuntu Linux, there is a [.deb package](http://goo.gl/agAR2p) file that you could install by:

```curl -L -o pg-search-thai.deb http://goo.gl/agAR2p && dpkg -i pg-search-thai.deb```

## Usage

- Start the **psql** console ( Or any postgresql client, **pgAdmin** for instance ) and create the extension you have just installed by typing following commands:
Expand Down

0 comments on commit a262531

Please sign in to comment.