Closed (fixed)
Project:
Views Fast Search
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Jan 2008 at 16:31 UTC
Updated:
24 Feb 2008 at 20:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
douggreen commentedThanks! (This was part of a (GHOP Task).
I think you're missing a
variable_del('search_node_links').Also, I'd explicitly name the rankings to skip, because if you rely on
views_fastsearch_search_ranking(), it's possible that you'll miss one or two of them if they were disabled (but not uninstalled). So instead of calling views_fastsearch_search_ranking, just usearray('....', '....', '...')for all the values to remove. Then you might try to figure out some php array function that will give you all values that are in one array and not in another. Just a suggestion. What do you think?Comment #2
douggreen commentedComment #3
corsix commentedI can't find any mention of search_node_links in the module:
array_diff would be the perfect function to use in this situation, however the PHP manual states that it was broken in PHP 4.0.4, so as long as Drupal supports PHP4, it is not desirable to use it. Using an explicit list is a better idea, so changed to use it.
Comment #4
corsix commentedComment #5
douggreen commentedHmm, it looks like I've been accidentally developing on the DRUPAL-5 branch instead of the DRUPAL-5--2 branch. I'll need to fix this tomorrow. But, please check out the DRUPAL-5 branch and you'll see the missing variable.
Did you spend any time trying to get the following lines to two lines, using a php array function?
I think that one of the array_diff functions might do it.
Comment #6
corsix commentedI don't think the array_diff functions are applicable:
array_diff_assoc: Works on key/value pairs, whereas we want keys
array_diff_key: Requires PHP >= 5.1.0RC1
array_diff_uassoc: Requires PHP 5
array_diff_ukey: Requires PHP >= 5.1.0RC1
array_diff: Works on values, whereas we want keys
Comment #7
corsix commentedThen again, you could do:
Comment #8
dmitrig01 commentedYes that's ideal
Comment #9
corsix commentedOk, using that :)
Comment #10
corsix commentedchanged
+ // ignore the standard node_rankingsto
+ // Ignore the standard node_rankingsComment #11
dmitrig01 commentedGood to go!
Comment #12
douggreen commentedThis is already committed.
Comment #13
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.