JJZolx;650953 Wrote: 
> Actually, "don%t", "don<t", and "don=t" _do_ successfully match "don't".
> It would be surprising if those characters failed to match themselves.
Are you sure it *really* works correctly with the advanced search?
To me, it seems like both searches strip any punctuation.

Simple search:

Code:
--------------------
    Slim::Schema::Debug::query_start (23) SELECT COUNT( * ) FROM tracks me 
WHERE ( ( content_type IN ( ?, ? ) AND titlesearch LIKE ? ) ): 'ssp', 'mmp', 
'%DON T%'
--------------------


Advanced search:

Code:
--------------------
    Slim::Schema::Debug::query_start (23) SELECT COUNT( * ) FROM (SELECT me.id 
FROM tracks me LEFT JOIN contributor_track contributorTracks ON 
contributorTracks.track = me.id WHERE ( ( ( contributorTracks.role = ? OR 
contributorTracks.role = ? ) AND me.titlesearch LIKE ? ) ) GROUP BY me.id) 
count_subq: '1', '5', '%DON T%'
--------------------


Control::Queries::titlesQuery() => _getTagDataForTracks() =>
Slim::Utils::Text::searchStringSplit() => ignoreCaseArticles() =>
ignorePunct() => goodbye punctuation signs.

Here you go.


-- 
sebp

'Last.fm' (http://www.last.fm/user/sebp)
------------------------------------------------------------------------
sebp's Profile: http://forums.slimdevices.com/member.php?userid=11768
View this thread: http://forums.slimdevices.com/showthread.php?t=89619

_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/beta

Reply via email to