Skip to content

Whitespace separator - Postgresql full text search parser

Notifications You must be signed in to change notification settings

ArturFormella/tsexample

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tsexample

Fork of tsexample

Text Search Parser which split by whitespace only:

		space (0x20, ' ')
		form feed (0x0c, '\f')
		line feed (0x0a, '\n')
		carriage return (0x0d, '\r')
		horizontal tab (0x09, '\t')
		vertical tab (0x0b, '\v') 

Example:

SELECT * FROM ts_parse(  'sample_parser', '3,6V 3.6V MySQL Win-98 xyz #$%^& 
[email protected] c:\docs /etc/lib 678678678');

tokid	token
1	3,6V
1	3.6V
1	MySQL
1	Win-98
1	xyz
1	#$%^&
1	[email protected]
1	c:\docs
1	/etc/lib
2	678678678

Installation

UBUNTU Download PostgreSQL source code (double check version) and unzip it.

cd contrib
git clone https://github.com/ArturFormella/tsexample
cd tsexample
make
sudo make install

SQL:

CREATE EXTENSION IF NOT EXISTS tsexample WITH schema public;

About

Whitespace separator - Postgresql full text search parser

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 86.2%
  • Makefile 13.8%