Closed (fixed)
Project:
Nodewords: D6 Meta Tags
Version:
6.x-1.8
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Nov 2009 at 17:42 UTC
Updated:
28 Apr 2011 at 01:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
63reasons-YP commentedComment #2
MisterSpeed commentedComment #3
avpadernoThanks for pointing this out.
Unfortunately, the full code in
nodewords_nodeapi('update index')needs to be changed, and made more similar to the code present innodewords_get_tags().The code should call
<meta_tag_handler>_prepare(), which is responsible to return the actual content of the meta tag; it also needs to take in consideration the weight associated to each meta tags.I am already working to resolve this problem.
Comment #5
avpadernoThe code has been changed, and committed in CVS.
Thanks again for your report, and your help.
Comment #6
63reasons-YP commentedI am always happy to help.
Comment #7
63reasons-YP commentedI had test last dev version (Nov.14) of the module, it doesn't work for me in "indexing feature".
And module output warnings, when it is enable.
Comment #8
avpadernowhich warnings messages do you see?
Comment #9
63reasons-YP commentedI see warnings that discribed this: #632856: Error with version_compare().
Comment #10
avpadernoComment #11
63reasons-YP commentedI don't understand, is "indexing feature" pb resolved (becouse i see another code in dev version, then in beta5, but it not work for me)?
Comment #12
Zalatar commentedKiam,
Can you tell me if this issue of "Search" not indexing nodewords has been fixed?
And what release was this fixed in?
I am still having issues with this.
Thanks for all your hard work on this module. It is appreciated.
Z
Comment #13
avpadernoI am changing the title to make it clearer.
In the next days I will verify if effectively the meta tags content is not indexed.
Comment #14
avpadernoI marked #638900: Is search indexing nodewords? as duplicate of this report.
Comment #15
ilo commentedKiamLaLuno, could you please review this code? this is from current latest version, the hook_nodeapi(update index):
Just realized that $output is built upong the $tags variable content, but this variable is not updated within the foreach scope, so it ends being an empty array.. Is some code missing to get data into $tags from $output_tags?
Does nodewords_output_tags return valid information for 'update index' operation? I'd say it is returning HTML, where indexing should use plaintext, and single words.
Comment #16
avpadernoThe correct variable name is
$tags; I copied the code from a different function, which used$output_tags.I already changed both the functions to use
$tags, but I still have to commit it in CVS. Before to commit the code, I will add some options more for the custom pages (a.k.a. other pages). I have already added an option to let the user decide if the passed path must be checked agains the path alias of the currently shown page; I will also add an option that allow to use a more generic path that includes also parameters, and anchors.Comment #17
ilo commentedoh, these are good news.. well.. I guess.. I still can't find the added value in searching node using keywords.. can anyone explain me that?
Comment #18
avpadernoIt is useful to find a node by keywords as it is searching a node by taxonomy terms (taxonomy.module implements
hook_nodeapi()too). I agree that searching by keywords seems redundant with searching by taxonomy terms, but I can understand if somebody would prefer to use differently keywords, and taxonomy terms.Comment #19
ilo commentedThis feature can easily work if nodewords use a custom vocabulary while node tagging is done with another. User can search using taxonomy and nodewords vocabularies for that.
From my pov, I can tell, I've found annoying that I'm searching the word 'test', and a node is listed in the search but test string is not anywhere in the node.. This feature to acceptable from UX should have:
- permissions to search nodes using nodewords terms.
- mark a result of the search as 'search string found in meta tags' because results would be confusing, or separate search in other tab.
Otherwise it will turn into a magic hidden feature, that btw is not documented anywhere :)
Anyway, as I said, this could be done using two taxonomies in case a user would prefer to have different terms for node tags and meta tags.
Comment #20
avpadernoThat is true also for comment.module, which implements
hook_nodeapi('update index'). It is true that normally comments are shown after the node, but in some cases that is not true.If the searched text should be visible in the node page, IMO, there would not be a reason to allow modules to implement
hook_nodeapi('update index'). I agree that the feature should be documented in the file README.txt.Maybe the meta tags edit form should report which meta tags are indexed.
Comment #21
avpadernoI fixed the problem. The attached file is the patch for the last changes in the code.
Comment #22
ilo commentedI've committed (294422) a testcase to verify this issue.
Comment #23
Zalatar commentedI have applied the new module and indexing appears to be working at this time. Yea!!
Thank you Kiam!
I will have more time tomorrow to test it further.
Z
Comment #24
bartezz commentedsubscribe
Comment #26
bartezz commentedWas this comitted to 6.x-1.8? I've just updated to this version, reindexed site and ran cron but search won't find the node by keywords I've added to meta description or meta keywords...
Cheers
Comment #27
gpk commentedPer #21 and #22 this has been fixed and relevant test cases also built in to the module. Those changes were committed end November and 1.8 came out 10 Dec so it should be working. Perhaps more than 1 cron run was needed to completely reindex the site.
Comment #28
Balbo commentedIs there a way to prevent metatags to be indexed for internal search? I don't like people finding nodes that do not contain the words they did look for.
Comment #29
dave reidThere is no more search-related code in the module. It should be a separate module or sub-module if enough people want meta tags added to search indexes.