--- trunk/bin/pgest-index.pl 2006/08/07 14:47:00 65 +++ trunk/bin/pgest-index.pl 2006/08/07 14:56:08 66 @@ -22,13 +22,12 @@ select ime,tel from imenik }, pk_col => 'tel', - db_encoding => 'iso-8859-2', debug => 1, user => 'admin', passwd => 'admin', }; -GetOptions($c, qw/node_url=s sql=s pk_col=s eb_encoding=s debug+ user=s passwd=s/); +GetOptions($c, qw/node_url=s sql=s pk_col=s debug+ user=s passwd=s/); warn "# c: ", Dumper($c) if ($c->{debug}); @@ -106,9 +105,6 @@ while (my ($col,$val) = each %{$row}) { if ($val) { - # change encoding? - from_to($val, ($c->{db_encoding} || 'ISO-8859-1'), 'UTF-8'); - # add attributes (make column usable from attribute search) $doc->add_attr($col, $val); @@ -157,8 +153,8 @@ my $col_names = join(', ', @cols); my $col_def = join(', ', map { "$_ text" } @cols); -print "example SQL search query: - +print " +## example SQL search query: SELECT $col_names FROM pgest( @@ -166,7 +162,7 @@ '$c->{node_url}', '$c->{user}', '$c->{passwd}', 0, -- full text search 'foo bar', - -- attribute filter, order by, limit, offset + -- attribute filter, order, limit, offset null, null, null, null, -- return columns array[$cols]