merged rel21 branch (up to r3710) back into trunk

git-svn-id: http://sphinxsearch.googlecode.com/svn/trunk@3711 8b96e2b9-35c5-2c16-bc47-5122d61876d4
merged rel21 branch (up to r3757) back into trunk

git-svn-id: http://sphinxsearch.googlecode.com/svn/trunk@3760 8b96e2b9-35c5-2c16-bc47-5122d61876d4
ALTER TABLE implemented

git-svn-id: http://sphinxsearch.googlecode.com/svn/trunk@3761 8b96e2b9-35c5-2c16-bc47-5122d61876d4
fixed #1482 ATTACH works with non empty RT index
added case to test 187

git-svn-id: http://sphinxsearch.googlecode.com/svn/trunk@3762 8b96e2b9-35c5-2c16-bc47-5122d61876d4
fixed r3762 to build with libstemmer

git-svn-id: http://sphinxsearch.googlecode.com/svn/trunk@3765 8b96e2b9-35c5-2c16-bc47-5122d61876d4
fixed ALTER column type handling

git-svn-id: http://sphinxsearch.googlecode.com/svn/trunk@3766 8b96e2b9-35c5-2c16-bc47-5122d61876d4
added table functions mechanism, and REMOVE_REPEATS() table function

git-svn-id: http://sphinxsearch.googlecode.com/svn/trunk@3770 8b96e2b9-35c5-2c16-bc47-5122d61876d4
tablefuncs can be applied to nested selects too

git-svn-id: http://sphinxsearch.googlecode.com/svn/trunk@3771 8b96e2b9-35c5-2c16-bc47-5122d61876d4
fixed broken sphUniq function for empty data
added tests

git-svn-id: http://sphinxsearch.googlecode.com/svn/trunk@3773 8b96e2b9-35c5-2c16-bc47-5122d61876d4
fixed sphUniq test

git-svn-id: http://sphinxsearch.googlecode.com/svn/trunk@3774 8b96e2b9-35c5-2c16-bc47-5122d61876d4
fixed #1497 query for multiple distributed index and mix of local and distributed
fixed index_weights for distributed indexes 
added cases to test 153

git-svn-id: http://sphinxsearch.googlecode.com/svn/trunk@3775 8b96e2b9-35c5-2c16-bc47-5122d61876d4
added predicted_time and dist_predicted_time to SHOW META and Status()

git-svn-id: http://sphinxsearch.googlecode.com/svn/trunk@3780 8b96e2b9-35c5-2c16-bc47-5122d61876d4
ISphTokenizer::SetBuffer(), sphUTF8Decode() input buffers are now const

git-svn-id: http://sphinxsearch.googlecode.com/svn/trunk@3785 8b96e2b9-35c5-2c16-bc47-5122d61876d4
fixed SQL statements names list

git-svn-id: http://sphinxsearch.googlecode.com/svn/trunk@3798 8b96e2b9-35c5-2c16-bc47-5122d61876d4
merged rel21 branch (up to r3798) back into trunk



git-svn-id: http://sphinxsearch.googlecode.com/svn/trunk@3799 8b96e2b9-35c5-2c16-bc47-5122d61876d4
merged rel21 branch (up to r3802) back into trunk


git-svn-id: http://sphinxsearch.googlecode.com/svn/trunk@3803 8b96e2b9-35c5-2c16-bc47-5122d61876d4
added support for STRING, STRINGPTR columns to REMOVE_REPEATS()

git-svn-id: http://sphinxsearch.googlecode.com/svn/trunk@3804 8b96e2b9-35c5-2c16-bc47-5122d61876d4
fixed #1497 for expression ranker (moved index re-weight to index)
fixed random weight to scale by index weight
fixed random weight phase (now weight dependent expression calculation get proper match weight)
fixed got rid of weighted ranks sum at result sets merging as it breaks weight dependent expression \ filter \ sorting
added regressions to test 153

git-svn-id: http://sphinxsearch.googlecode.com/svn/trunk@3805 8b96e2b9-35c5-2c16-bc47-5122d61876d4
merged rel21 branch (up to r3807) back into trunk

git-svn-id: http://sphinxsearch.googlecode.com/svn/trunk@3808 8b96e2b9-35c5-2c16-bc47-5122d61876d4
added n best group-by

git-svn-id: http://sphinxsearch.googlecode.com/svn/trunk@3809 8b96e2b9-35c5-2c16-bc47-5122d61876d4