This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Modifying search index

It seems that there's a pairing between a node's view and it's indexing.
You may add new data to the index easily, through the 'update index' hook but I think you can't modify data present in the node's view, which is included in the index by default, and cannot be removed. Node module's node_update_index hook calls the view hook and adds the result to the index. You may override this by implementing hook nodeapi 'view' but this will change the node's view.

Why do I need some fields to be viewed but NOT indexed? A good example is the CCK nodes. CCK view includes node's field labels and texts, and I don't want the labels to be indexed, just the texts. But of course, they should be part of the view output.

So my question is... how can I separate a node's view from its indexing so that the view isn't always included in the index?

There might be a solution for this (without patching core modules), but I don't know... the simplest thing I came up with is adding a flag to hook nodeapi('update index'), telling the hook caller to rewrite the index with the hook's result instead of appending it to the index previously build based on hook view.
I'm referring to the node_update_index() function, in node.module (this is the original code, I haven't done anything yet):
<?php
// Get node output (filtered and with module-specific fields).
if (node_hook($node, 'view')) {
node_invoke($node, 'view', false, false);

Site Reviews module?

I just wanna ask if there is available module like this one, Site Reviews module?

Thanks.

How can I limit the attached files amount in upload module

in the settings I just found I could set the size of file(s). Is there any way to set the files amount?

Does anyone know of a basic table maintenance

Does anyone know of a basic table maintenance function or module or example
With Add Change Delete?

Where records are displayed in a list and can be selected.

It seems like such a basic thing I’m thinking there must be one.

How to upload files in node type module?

I want to upload files but not use the "upload" module since I need add more rules.

I have completed the form function and how can I use drupal API to upload file? The "fileupload" module which is the example module seems cannot download. And it is not very clear. Is there a better tutorial?

need help with category.

Hi
I use category module to manage my data. I have add 1 container and two categories (example car; motorbike) below it. After that i add some page in each category, but when I click in one category, it display all page in 2 categories (it should display page in one category). Anybody have me please??

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions