PECL :: sphinx 0.1.0

AP

Новичок
PECL :: sphinx 0.1.0

Собственно первая бета extension'a для популярного поискового движка Sphinx.
cкачать можно тут
P.S. Спасибо Tony2001, ушёл тестить....
 

tony2001

TeaM PHPClub
не за что.
найденные проблемы, плз, описывайте тут или в почте.

кстати, я там уже нашел и исправил одну проблему - addQuery() возвращает true вместо числа.
 

tony2001

TeaM PHPClub
кстати, большая просьба:
мне нужны небольшие примеры для каждой функции (чем больше, тем лучше) для добавления в документацию.
указание авторства и благодарность гарантирую =)
 

tony2001

TeaM PHPClub
_теоретически_ на больших объёмах передаваемых данных может быть какая-то разница в производительности, я не делал бенчмарки.
а так - стандартная либа, стандартный экстеншен.
есть надежда, что они получат бОльшее внимание и больше фидбэка.

-~{}~ 25.07.08 14:50:

Wicked
http://sphinxsearch.com/about.html - он сам себя так называет.

-~{}~ 25.07.08 15:20:

Документация:
http://docs.php.net/manual/en/book.sphinx.php

Скоро появится тут:
http://php.net/manual/en/book.sphinx.php
 

AP

Новичок
при сборке вылетает:

checking for sphinx support... yes, shared
checking for libsphinxclient headers in default path... found in /usr/local
checking for sphinx_create in -lsphinxclient... no
configure: error: wrong libsphinxclient version or lib not found


Sphinx 0.9.8
 

tony2001

TeaM PHPClub
>Sphinx 0.9.8
А причем тут это?
libsphinxclient - это отдельная библиотека.
Хоть и идёт она вместе с самим сфинксом, ставить её всё равно нужно отдельно.
 

fixxxer

К.О.
Партнер клуба
о, дак это же круто. спасибо :) в ближайшее время опробую.

кстати
PHP:
$s->setMatchMode(SPH_MATCH_ANY);
я, кажется, запутался в php coding standards - таки константы в ООП-стайл экстеншенах делаются константами класса или нет? %)
 

Santiago

Новичок
tony2001
Спасибо за модуль, пока багов в работе замечено не было.
 

tony2001

TeaM PHPClub
гуд, я завтра выложу 0.2.0 с небольшими исправлениями и начну его пиарить.
 

confguru

ExAdmin
Команда форума
tony2001

Я уже пиарю.. готов включить в анонс видео с PHPConf
 

alexhemp

Новичок
FreeBSD 7.0 Stable

PHP 5.2.6 из портов

Sphinx 0.9.8-release из портов

делаю
pecl install channel://pecl.php.net/sphinx-0.2.0

Ошибка

checking for libsphinxclient headers in default path... found in /usr/local
checking for sphinx_create in -lsphinxclient... no
configure: error: wrong libsphinxclient version or lib not found
ERROR: `/tmp/sphinx/configure --with-sphinx' failed

Что я не так делаю? Или extension пока не совместим с sphinx 0.9.8 ?
 

alexhemp

Новичок
стоит...

кусок из make install в api/libsphinxclient

/usr/bin/install -c .libs/libsphinxclient-0.0.1.so /usr/local/lib/libsphinxclient-0.0.1.so
strip --strip-unneeded /usr/local/lib/libsphinxclient-0.0.1.so
(cd /usr/local/lib && { ln -s -f libsphinxclient-0.0.1.so libsphinxclient.so || { rm -f libsphinxclient.so && ln -s libsphinxclient-0.0.1.so libsphinxclient.so; }; })
/usr/bin/install -c .libs/libsphinxclient.lai /usr/local/lib/libsphinxclient.la
/usr/bin/install -c .libs/libsphinxclient.a /usr/local/lib/libsphinxclient.a
strip --strip-debug /usr/local/lib/libsphinxclient.a
chmod 644 /usr/local/lib/libsphinxclient.a
ranlib /usr/local/lib/libsphinxclient.a
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib
Далее делаю pecl install channel://pecl.php.net/sphinx-0.2.0

# pecl install channel://pecl.php.net/sphinx-0.2.0
downloading sphinx-0.2.0.tar ...
Starting to download sphinx-0.2.0.tar (Unknown size)
.............done: 49,664 bytes
4 source files, building
running: phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
1. Please provide the installation prefix of libsphinxclient : autodetect

1-1, 'all', 'abort', or Enter to continue: 1
Please provide the installation prefix of libsphinxclient [autodetect] : /usr/lo cal
1. Please provide the installation prefix of libsphinxclient : /usr/local

1-1, 'all', 'abort', or Enter to continue:
building in /var/tmp/pear-build-alexm/sphinx-0.2.0
running: /tmp/sphinx/configure --with-sphinx=/usr/local
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc and cc understand -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... yes
checking build system type... i386-unknown-freebsd7.0
checking host system type... i386-unknown-freebsd7.0
checking target system type... i386-unknown-freebsd7.0
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/m ain -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/inc lude/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/20060613
checking for PHP installed headers prefix... /usr/local/include/php
checking for re2c... re2c
checking for re2c version... 0.13.5 (ok)
checking for gawk... gawk
checking for sphinx support... yes, shared
checking for libsphinxclient headers in /usr/local... found
checking for sphinx_create in -lsphinxclient... no
configure: error: wrong libsphinxclient version or lib not found
ERROR: `/tmp/sphinx/configure --with-sphinx=/usr/local' failed
Библиотека стоит...
 
Сверху