vBulletin ModsThe Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=127868 |
Mind sharing the patch and maybe your implementation in vB? Or at least outlining it?
Would be nice...! |
orban, what kind of changes do i need to make to my search.php to have it search both the main and delta index?
Prior to setting up the delta index on my end, I noticed that I could search for words in post bodies and not return results, but if I look in my query.log I would see many many results. |
mmmmm
you don't have to modify search.php, create a fake index that contains the two other indices. |
hm ok, i think my config just might be a bit goofy. On my dev board, I created a new post after creating all 4 indexes. Anyway, my test post had a made up word in it, and after I posted I reran the delta updates, saw them pick up one doc, but I don't get any results returned if I use the "search" tool with sphinx.
I'm going to double check my config now. |
weird....
make sure the indexes get created (check the data files) |
Quote:
|
sphinx
|
Hm. this is very strange. I have verified that my config is the same as yours (minus the names of the indexes), and have emptied my sphinx_counter table, nuked all my indexes, and rebuilt.
[[email protected] var]# /home/httpd/sphinx/bin/search -c /home/httpd/sphinx/etc/sphinx.conf purple Sphinx 0.9.6 Copyright (c) 2001-2006, Andrew Aksyonoff - loaded 591 stopwords from '/home/httpd/sphinx/etc/sphinx.stopwords' index 'vbpostidx': query 'purple ': returned 0 matches of 0 total in 0.000 sec - loaded 591 stopwords from '/home/httpd/sphinx/etc/sphinx.stopwords' index 'vbpostdeltaidx': query 'purple ': returned 0 matches of 0 total in 0.000 sec - loaded 591 stopwords from '/home/httpd/sphinx/etc/sphinx.stopwords' index 'vbthreadidx': query 'purple ': returned 0 matches of 0 total in 0.000 sec - loaded 591 stopwords from '/home/httpd/sphinx/etc/sphinx.stopwords' index 'vbthreaddeltaidx': query 'purple ': returned 0 matches of 0 total in 0.000 sec I broke something, but I don't know what :) Ah, I found the problem I think. For whatever reason, on my initial index, despite having used --rotate, it is leaving *new* index files in my var dir: [[email protected] var]# ls -la *new* -rw-r--r-- 1 root root 1356935444 Oct 2 13:39 vbpost.new.spd -rw-r--r-- 1 root root 10644727 Oct 2 13:39 vbpost.new.spi -rw-r--r-- 1 root root 54322284 Oct 2 13:42 vbthread.new.spd -rw-r--r-- 1 root root 879893 Oct 2 13:42 vbthread.new.spi Sphinx won't search against these, but I'm not sure why they didn't roll over. |
Yeah I don't have .new. ones, just .old. ones.
Permissions? |
It is what I believe a bug in sphinx. If you start searchd w/ no indexes preexisting, then index with --rotate, it won't rotate. The solution is to stop searchd, nuke everything, index, then start searchd.
It took me a while to figure it out, I'm not sure why it isn't smart enough to see that there aren't preexisting indexes when searchd tries to rotate. |
Oh :(
Yeah I did the first index without searchd started. Report it so it can be fixed :) |
I was just curious is your search_sphinx.php posted a few threads back the most current one? or have you made more adjustments?
|
Just an FYI, make sure you limit access to that search on your dev boxes if you don't potentially want people searching for info in your private forums :)
I guess now we just get to wait patiently for 0.9.7 to come out... |
What you mean? Other users with ssh access?
Yeah or kmike can share his patch http://www.vbulletin.org/forum/showp...2&postcount=21 :( |
Quote:
|
All times are GMT. The time now is 08:00. |
Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.