ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* Re: [sisyphus] amaroK
  2006-11-01 14:20 ` [sisyphus] amaroK (was: Re: sqlite3 full text search) Igor Zubkov
@ 2006-11-01 13:35   ` Mikhail Yakshin
  0 siblings, 0 replies; 3+ messages in thread
From: Mikhail Yakshin @ 2006-11-01 13:35 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

Igor Zubkov пишет:
> В сообщении от 1 ноября 2006 15:57 Alexey Tourbin написал(a):
>> Из git://git.altlinux.org/people/at/packages/sqlite3.git
>> можно попробовать sqlite3 с собранным full text search backend'ом.
>> Пакет называется sqlite3-fts2, ".load fts2" работает из коробки.
>> Примеры из http://www.sqlite.org/cvstrac/wiki?p=FtsOne тоже работают,
>> только вместо fts1, естественно, надо использовать fts2.
> 
> Кто не понял, то теперь в amaroK поиск будет работать лучше.
> 
> https://bugzilla.altlinux.org/show_bug.cgi?id=8799

Сильно сомневаюсь. amarok не использует эти "match", и уж точно не 
делает ".load fts2". Там обычные LIKE:

QString
CollectionDB::likeCondition( const QString &right, bool anyBegin, bool 
anyEnd )
{
     QString escaped = right;
     escaped.replace( '/', "//" ).replace( '%', "/%" ).replace( '_', "/_" );
     escaped = instance()->escapeString( escaped );

     QString ret;
     if ( DbConnection::postgresql == instance()->getDbConnectionType() )
         ret = " ILIKE "; //case-insensitive according to locale
     else
         ret = " LIKE ";

     ret += "'";
     if ( anyBegin )
             ret += "%";
     ret += escaped;
     if ( anyEnd )
             ret += "%";
     ret += "'";

     //Use / as the escape character
     ret += " ESCAPE '/' ";

     return ret;
}

По крайней мере 1.4.3.

-- 
WBR, GreyCat


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [sisyphus] sqlite3 full text search
@ 2006-11-01 13:57 Alexey Tourbin
  2006-11-01 14:20 ` [sisyphus] amaroK (was: Re: sqlite3 full text search) Igor Zubkov
  0 siblings, 1 reply; 3+ messages in thread
From: Alexey Tourbin @ 2006-11-01 13:57 UTC (permalink / raw)
  To: sisyphus

[-- Attachment #1: Type: text/plain, Size: 321 bytes --]

Из git://git.altlinux.org/people/at/packages/sqlite3.git
можно попробовать sqlite3 с собранным full text search backend'ом.
Пакет называется sqlite3-fts2, ".load fts2" работает из коробки.
Примеры из http://www.sqlite.org/cvstrac/wiki?p=FtsOne тоже работают,
только вместо fts1, естественно, надо использовать fts2.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [sisyphus] amaroK (was: Re:  sqlite3 full text search)
  2006-11-01 13:57 [sisyphus] sqlite3 full text search Alexey Tourbin
@ 2006-11-01 14:20 ` Igor Zubkov
  2006-11-01 13:35   ` [sisyphus] amaroK Mikhail Yakshin
  0 siblings, 1 reply; 3+ messages in thread
From: Igor Zubkov @ 2006-11-01 14:20 UTC (permalink / raw)
  To: sisyphus

[-- Attachment #1: Type: text/plain, Size: 524 bytes --]

В сообщении от 1 ноября 2006 15:57 Alexey Tourbin написал(a):
> Из git://git.altlinux.org/people/at/packages/sqlite3.git
> можно попробовать sqlite3 с собранным full text search backend'ом.
> Пакет называется sqlite3-fts2, ".load fts2" работает из коробки.
> Примеры из http://www.sqlite.org/cvstrac/wiki?p=FtsOne тоже работают,
> только вместо fts1, естественно, надо использовать fts2.

Кто не понял, то теперь в amaroK поиск будет работать лучше.

https://bugzilla.altlinux.org/show_bug.cgi?id=8799

-- 
Disturbed - Want

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-11-01 14:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-01 13:57 [sisyphus] sqlite3 full text search Alexey Tourbin
2006-11-01 14:20 ` [sisyphus] amaroK (was: Re: sqlite3 full text search) Igor Zubkov
2006-11-01 13:35   ` [sisyphus] amaroK Mikhail Yakshin

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git