Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
721d635
branched out 2.2.x
Feb 6, 2015
5eadb89
fixed #2171 template index options setup
Feb 9, 2015
465e37c
fixed wlccs calculations
Feb 16, 2015
d4f6195
fixed #2170 indexer failure on joined with docid=0 and dupes at field
Feb 16, 2015
ab26efb
added feature #2176 per agent options (ha_strategy, conn, blackhole)
Feb 17, 2015
642994f
added --with-assert configure option (fast builds but with debug checks)
Feb 19, 2015
cecaeee
fixed #2172 ExtConditional vs tail hits from other nodes
Feb 24, 2015
ba4841a
fixed #2182 complex query with multi destination wordforms
Feb 27, 2015
7464a32
added missed wordforms to test 52
Feb 27, 2015
0eadb40
fixed #2110 crash on snippet generation
Mar 2, 2015
c386b28
fixed memory leak of zones at ranker destruction
Mar 4, 2015
af24408
fixed #2178 ZONESPAN operator for hits from 3 and more nodes
Mar 4, 2015
cf02642
fixed documentation issues #1736 #1945 #1838 #1813 #1732 #1712 #1597
Mar 4, 2015
8421cc7
fixed #2181 error message for special filter with wrong type of value
Mar 4, 2015
3ece4ee
added changelog to 2.2.8
Mar 6, 2015
e2cb534
Sphinx 2.2.8-release is here
Mar 9, 2015
2dcb1e0
bumped Sphinx 2.2.9-dev
Mar 9, 2015
9efe0f7
fixed #2190 incorrect group by outer JSON object
Mar 10, 2015
4b1559a
do not log previous query in case of receiving unknown MySQL command
Mar 13, 2015
4be2b53
fixed #2197, TRUNCATE fails to remove disk chunk files after calling …
Mar 17, 2015
81f27b7
fixed rlp build
Mar 19, 2015
b971afe
fixed truncated results (and a potential crash) vs long enough ZONESP…
Mar 20, 2015
fb8497b
fixed #2199 invalid packedfactors json output for index with stopwords
Mar 20, 2015
a9e152c
fixed #2176 agent used ha_strategy=random instead of agent option or …
Mar 23, 2015
1fbb784
fixed #2203 legacy API select list
Mar 23, 2015
52b461c
fixed #2127 indextool false positive error checking ram part of RT index
Mar 23, 2015
b1b49da
fixed #2201 string comparison at expression and expression ranker
Mar 24, 2015
5c083f8
fixed crash in test 206 (after r4944), fixed warnings, updated model
Mar 30, 2015
37d0bd4
fixed #2196 resolved .NET connector issues (utc_timestamp() support)
Mar 30, 2015
1ec4c96
fixed #2144, query parser crash vs multiforms with heading numbers
Apr 7, 2015
af1da83
fixed a typo in docs
Apr 7, 2015
f458b1e
fixed #2228 daemon fatal shutdown on client goes off
Apr 14, 2015
e5a45b0
fixed #2220 aliased JSON elements support
Apr 14, 2015
129dd75
fixed #2122 id64 daemon failed to load RT disk chunk with kill-list f…
Apr 14, 2015
2bfb386
fixed #2208 zonespanlist() support for RT indexes
Apr 14, 2015
1cb2601
added changelog for 2.2.9-release
Apr 15, 2015
352fec1
fixed #1979: snippets, span length and lcs calculation vs proximity q…
Apr 15, 2015
80e7737
updated changelog for 2.2.9
Apr 16, 2015
bb1ede9
Sphinx 2.2.9-release
Apr 16, 2015
800b59c
bumped Sphinx-2.2.10-dev
Apr 16, 2015
3faa51b
fixed daemon crash on working with bad indexes
Apr 17, 2015
940a227
fixed #2146 optimize for RT index with large sps or spm file produce …
Apr 21, 2015
9b41982
fixed indextool vs MVAs with zero values (an index error was mistaken…
Apr 24, 2015
899fd12
fixed #2231 dict settings difference for query to RT index with ram a…
Apr 27, 2015
be0f82b
fixed #2235 strict update option doesn't work with plain indexes
Apr 28, 2015
dd3ee7b
fixed #2237 attaching plain index to RT cause crash of query to distr…
Apr 29, 2015
d25ae6c
fixed #2212 indextool vs MVAs head check (an index error was mistaken…
Apr 29, 2015
38e672f
fixed #2238 loading of bad RT RAM-chunk data
Apr 30, 2015
9cdede8
fixed #2207 min_prefix_len constraint at RT index
May 1, 2015
c04029e
fixed #2239 removed explicit AND operator description from documentation
May 6, 2015
cdff23c
fixed #2240 various issues on logging query into query log with sphin…
May 6, 2015
60f3191
fixed #2234 filtering empty strings in WHERE clause
May 8, 2015
6ac622f
fixed #2232 collation support in expressions
May 8, 2015
78aa983
updated test 163 (uppercase issues)
May 8, 2015
7cefaa6
fixed EXIST() behavior for test 163, rolled back r5047
May 8, 2015
447c150
fixed #2233 IN() filter support for string values
May 12, 2015
2c0cf58
fixed GCC warnings
May 12, 2015
85c102f
fixed #2207 min_prefix_len and min_infix_len constraint at RT index
May 12, 2015
3b88b27
fixed #2207 min_prefix_len and min_infix_len constraint at RT index
May 13, 2015
d77905b
updated GPLv2 file
May 14, 2015
8a18a2b
fixed #2248 wrong LENGTH() value for 64-bit MVA attribute
May 18, 2015
8ec3106
fixed #2251 #2252 back-porting from trunk
May 21, 2015
da25423
fixed #2245 quoted column at distributed index
May 25, 2015
74a447e
fixed #2258 bad factors for terms from aot lemmatizer
May 29, 2015
bcebee7
fixed #2258 bad factors for terms from aot lemmatizer with multiple f…
May 29, 2015
985f55e
fixed #2248 broken option with space characters at SNIPPET expression
Jun 1, 2015
70b5549
fixed bug #1528 (buffer overflow in metaphone on long strings)
Jun 1, 2015
8207c3d
fixed #2225 crash of daemon on start due to empty agent host string
Jun 2, 2015
fcd8259
fixed bug #1551 (position errors int proximity queries with blended c…
Jun 2, 2015
1d94029
fixed #2257 crash at or operator with conditional children
Jun 3, 2015
8f44a24
fixed bug #1510 (no warning on missing fields in field_weights)
Jun 3, 2015
b332d43
fixed #2127 indextool check mode reports error for updated json attri…
Jun 4, 2015
3155e0d
fixed bug #1567 (quoted attributes not working in expressions)
Jun 5, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 16 additions & 21 deletions COPYING
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991

GNU GENERAL PUBLIC LICENSE
Version 2, June 1991

Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.

Preamble
Preamble

The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Expand All @@ -16,7 +15,7 @@ software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.

When we speak of free software, we are referring to freedom, not
Expand Down Expand Up @@ -57,7 +56,7 @@ patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.

GNU GENERAL PUBLIC LICENSE
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. This License applies to any program or other work which contains
Expand Down Expand Up @@ -256,7 +255,7 @@ make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.

NO WARRANTY
NO WARRANTY

11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
Expand All @@ -278,9 +277,9 @@ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.

END OF TERMS AND CONDITIONS
END OF TERMS AND CONDITIONS

How to Apply These Terms to Your New Programs
How to Apply These Terms to Your New Programs

If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
Expand All @@ -292,7 +291,7 @@ convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

<one line to give the program's name and a brief idea of what it does.>
Copyright (C) 19yy <name of author>
Copyright (C) <year> <name of author>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -304,17 +303,16 @@ the "copyright" line and a pointer to where the full notice is found.
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Also add information on how to contact you by electronic and paper mail.

If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:

Gnomovision version 69, Copyright (C) 19yy name of author
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
Expand All @@ -337,8 +335,5 @@ necessary. Here is a sample; alter the names:
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.



7 changes: 0 additions & 7 deletions config/config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,6 @@
/* Define to 1 if you have the `pthread_mutex_timedlock' function. */
#undef HAVE_PTHREAD_MUTEX_TIMEDLOCK

/* Define to 1 if your system has a GNU libc compatible `realloc' function,
and to 0 otherwise. */
#undef HAVE_REALLOC

/* Define to 1 if you have the `select' function. */
#undef HAVE_SELECT

Expand Down Expand Up @@ -331,9 +327,6 @@
/* Define to `int' if <sys/types.h> does not define. */
#undef pid_t

/* Define to rpl_realloc if the replacement function should be used. */
#undef realloc

/* Define to `unsigned int' if <sys/types.h> does not define. */
#undef size_t

Expand Down
113 changes: 33 additions & 80 deletions configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.68 for sphinx 2.2.8.
# Generated by GNU Autoconf 2.68 for sphinx 2.2.10.
#
# Report bugs to <shodan(at)sphinxsearch.com>.
#
Expand Down Expand Up @@ -560,8 +560,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='sphinx'
PACKAGE_TARNAME='sphinx'
PACKAGE_VERSION='2.2.8'
PACKAGE_STRING='sphinx 2.2.8'
PACKAGE_VERSION='2.2.10'
PACKAGE_STRING='sphinx 2.2.10'
PACKAGE_BUGREPORT='shodan(at)sphinxsearch.com'
PACKAGE_URL=''

Expand Down Expand Up @@ -726,6 +726,7 @@ ac_user_opts='
enable_option_checking
enable_maintainer_mode
with_debug
with_assert
enable_dependency_tracking
enable_dl
with_mysql
Expand Down Expand Up @@ -1302,7 +1303,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures sphinx 2.2.8 to adapt to many kinds of systems.
\`configure' configures sphinx 2.2.10 to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

Expand Down Expand Up @@ -1368,7 +1369,7 @@ fi

if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of sphinx 2.2.8:";;
short | recursive ) echo "Configuration of sphinx 2.2.10:";;
esac
cat <<\_ACEOF

Expand All @@ -1388,6 +1389,8 @@ Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-debug compile slower debug version (default is disabled)
--with-assert compile optimized build but with debugging
assertions (default is disabled)
--with-mysql compile with MySQL support (default is enabled)
--with-static-mysql link statically with MySQL library (default is no)
--with-mysql-includes path to MySQL header files
Expand Down Expand Up @@ -1492,7 +1495,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
sphinx configure 2.2.8
sphinx configure 2.2.10
generated by GNU Autoconf 2.68

Copyright (C) 2010 Free Software Foundation, Inc.
Expand Down Expand Up @@ -1995,7 +1998,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by sphinx $as_me 2.2.8, which was
It was created by sphinx $as_me 2.2.10, which was
generated by GNU Autoconf 2.68. Invocation command line was

$ $0 $@
Expand Down Expand Up @@ -2824,7 +2827,7 @@ fi

# Define the identity of the package.
PACKAGE='sphinx'
VERSION='2.2.8'
VERSION='2.2.10'


cat >>confdefs.h <<_ACEOF
Expand Down Expand Up @@ -2918,6 +2921,16 @@ else
fi



# Check whether --with-assert was given.
if test "${with_assert+set}" = set; then :
withval=$with_assert; ac_cv_use_assert=$withval
else
ac_cv_use_assert=no

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile debug version" >&5
$as_echo_n "checking whether to compile debug version... " >&6; }
if test x$ac_cv_use_debug != xno; then
Expand All @@ -2926,10 +2939,17 @@ if test x$ac_cv_use_debug != xno; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
SPHINX_CFLAGS="-fno-rtti -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG"
SPHINX_INJECT_FLAGS="-D_FILE_OFFSET_BITS=64 -DNDEBUG"
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
if test x$ac_cv_use_assert != xno; then
SPHINX_CFLAGS="-fno-rtti -Wall -g -D_FILE_OFFSET_BITS=64 -O2"
SPHINX_INJECT_FLAGS="-D_FILE_OFFSET_BITS=64"
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: asserts only" >&5
$as_echo "asserts only" >&6; }
else
SPHINX_CFLAGS="-fno-rtti -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG"
SPHINX_INJECT_FLAGS="-D_FILE_OFFSET_BITS=64 -DNDEBUG"
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
fi

if test x$ac_env_CFLAGS_set != xset; then
Expand Down Expand Up @@ -5536,73 +5556,6 @@ $as_echo "#define malloc rpl_malloc" >>confdefs.h
fi


for ac_header in stdlib.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
if test "x$ac_cv_header_stdlib_h" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_STDLIB_H 1
_ACEOF

fi

done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
if ${ac_cv_func_realloc_0_nonnull+:} false; then :
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then :
ac_cv_func_realloc_0_nonnull=no
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
# include <stdlib.h>
#else
char *realloc ();
#endif

int
main ()
{
return ! realloc (0, 0);
;
return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
ac_cv_func_realloc_0_nonnull=yes
else
ac_cv_func_realloc_0_nonnull=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
if test $ac_cv_func_realloc_0_nonnull = yes; then :

$as_echo "#define HAVE_REALLOC 1" >>confdefs.h

else
$as_echo "#define HAVE_REALLOC 0" >>confdefs.h

case " $LIBOBJS " in
*" realloc.$ac_objext "* ) ;;
*) LIBOBJS="$LIBOBJS realloc.$ac_objext"
;;
esac


$as_echo "#define realloc rpl_realloc" >>confdefs.h

fi


for ac_header in sys/select.h sys/socket.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Expand Down Expand Up @@ -9554,7 +9507,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by sphinx $as_me 2.2.8, which was
This file was extended by sphinx $as_me 2.2.10, which was
generated by GNU Autoconf 2.68. Invocation command line was

CONFIG_FILES = $CONFIG_FILES
Expand Down Expand Up @@ -9620,7 +9573,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
sphinx config.status 2.2.8
sphinx config.status 2.2.10
configured by $0, generated by GNU Autoconf 2.68,
with options \\"\$ac_cs_config\\"

Expand Down
20 changes: 15 additions & 5 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dnl Process this file with autoconf to produce a configure script.

AC_PREREQ(2.59)
AC_INIT([sphinx], [2.2.8], [shodan(at)sphinxsearch.com])
AC_INIT([sphinx], [2.2.10], [shodan(at)sphinxsearch.com])

dnl --------------------------------------------------------------------------

Expand All @@ -26,15 +26,26 @@ AC_ARG_WITH([debug],
[ac_cv_use_debug=$withval], [ac_cv_use_debug=no]
)

AC_ARG_WITH([assert],
AC_HELP_STRING([--with-assert], [compile optimized build but with debugging assertions (default is disabled)]),
[ac_cv_use_assert=$withval], [ac_cv_use_assert=no]
)

AC_MSG_CHECKING([whether to compile debug version])
if test x$ac_cv_use_debug != xno; then
SPHINX_CFLAGS="-fno-rtti -Wall -g -D_FILE_OFFSET_BITS=64"
SPHINX_INJECT_FLAGS="-D_FILE_OFFSET_BITS=64"
AC_MSG_RESULT([yes])
else
SPHINX_CFLAGS="-fno-rtti -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG"
SPHINX_INJECT_FLAGS="-D_FILE_OFFSET_BITS=64 -DNDEBUG"
AC_MSG_RESULT([no])
if test x$ac_cv_use_assert != xno; then
SPHINX_CFLAGS="-fno-rtti -Wall -g -D_FILE_OFFSET_BITS=64 -O2"
SPHINX_INJECT_FLAGS="-D_FILE_OFFSET_BITS=64"
AC_MSG_RESULT([asserts only])
else
SPHINX_CFLAGS="-fno-rtti -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG"
SPHINX_INJECT_FLAGS="-D_FILE_OFFSET_BITS=64 -DNDEBUG"
AC_MSG_RESULT([no])
fi
fi

dnl set flags for C compiler if there are no user overrides
Expand Down Expand Up @@ -104,7 +115,6 @@ SPHINX_CONFIGURE_PART([checking for library functions])
# Checks for library functions.
AC_FUNC_FORK
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_FUNC_SELECT_ARGTYPES
AC_TYPE_SIGNAL
AC_FUNC_STAT
Expand Down
6 changes: 3 additions & 3 deletions doc/indexer.1
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
.\" Title: indexer
.\" Author: [see the "Author" section]
.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
.\" Date: 01/20/2015
.\" Date: 04/16/2015
.\" Manual: Sphinxsearch
.\" Source: 2.2.8-dev
.\" Source: 2.2.10-dev
.\" Language: English
.\"
.TH "INDEXER" "1" "01/20/2015" "2\&.2\&.8\-dev" "Sphinxsearch"
.TH "INDEXER" "1" "04/16/2015" "2\&.2\&.10\-dev" "Sphinxsearch"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
Expand Down
Loading