Firefox PHP

Alternate search backend with sphinx fulltext search

Posted by Thomas Seifert 
Re: Alternate search backend with sphinx fulltext search
September 07, 2006 05:13AM
sheik, thats an issue for all fulltext indexers, see here
[sphinxsearch.com]

momo, if I see this correctly it orders by date ascending, right?
strange as I set the ordering mode to date desc.


Thomas Seifert
Re: Alternate search backend with sphinx fulltext search
September 07, 2006 05:41AM
Yes Thomas.
I see at tour code and we have desc ordering.
Perhaps the problem comes because i'm using french date format ?!
Re: Alternate search backend with sphinx fulltext search
September 07, 2006 05:57AM
no, it uses the internal date format which doesn't have anything to do with what you are using for output.


Thomas Seifert
Re: Alternate search backend with sphinx fulltext search
September 07, 2006 06:25AM
momo, I've uploaded a new version to this thread.
please try that one. it should fix the problem with the date-ordering.
you only need to replace mods/sphinx_search/sphinx_search.php with the one from that archive.


Thomas Seifert
Re: Alternate search backend with sphinx fulltext search
September 07, 2006 06:37AM
Perfect Thomas.
Now it's good. ;)

Another little bug. When we make a search with a keyword, this keyword appear in bold. That's good !

But in the little description of the message sometimes you have a cut before the </stong> for keyword.
So the following results are all in bold.

Do you understand what i mean ?
Re: Alternate search backend with sphinx fulltext search
September 07, 2006 07:04AM
yes I understand but I can't do anything about this beside completely disabling the
highlightning as I'm not doing neither the cut nor the bold-marking manually as this is done by the sphinx-daemon too.
can you point me to a search leading to that result? I might try to report it as a bug to the sphinx-folks.


Thomas Seifert
Re: Alternate search backend with sphinx fulltext search
September 11, 2006 06:05PM
Hello Thomas,

Always me. :)

I have a question with other charset for sphinx search.
I use french language (iso-8859-1 charset).
So if i make a search on "été" in french it returns 0 result.

Can i switch the charset ?
I've seen that you have only the choice between utf8 or sbcs charset.

Thanks
Re: Alternate search backend with sphinx fulltext search
September 12, 2006 01:42PM
if sphinx itself doesn't support other charsets, then it won't work, thats for sure.
where did you see the hint about utf8/sbcs?
is it really related to sphinxsearch in a whole or just some part of it?
I remember some part about the excerpt generator only working with utf8 ( [sphinxsearch.com] ) but not the whole sphinx.

Btw. sbcs is *single-byte encoding*, so its about all the other charsets used beside utf-8 (in my opinion) ... some docs are there what you'd need to specify in sphinx:
[sphinxsearch.com]


Thomas Seifert
Re: Alternate search backend with sphinx fulltext search
September 12, 2006 06:46PM
I added some changes to the module. I uploaded the new version 0.8 to the start of this thread.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Alternate search backend with sphinx fulltext search
September 13, 2006 05:04AM
Hi Thomas and Maurice,

There is a little bug.
On sphinx.conf file you wrote :
path = /usr/local/sphinx/var/data/phorum5_HEAD
Should be :
path = /usr/local/sphinx/var/data/phorum5_HEAD_msg


Then on sphinx_search.php you wrote :
$index_name_author = "phorum5_HEAD__author";
Should be :
$index_name_author = "phorum5_HEAD_author";

There is two underscore, unless one is expected.
Sorry, only registered users may post in this forum.

Click here to login