Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Where is the Search_Weight ?

Quote Reply
Where is the Search_Weight ?
Hi,

I've just installed the DBMan SQL v2.

No custom tables were created. I just trying to analyse default tables (Books, Homes, Image_gallery)
When I attempt to change Indexing Scheme from "NONINDEXED" to "MYSQL", an error message appears: "NOWEIGHTS".

In "Add/Edit Columns Help" I found this text: "Search Weight: If this is set to a positive value, this field will be included in the search index. Note: you must rebuild the search index after changing/adding a search weight."

But WHERE is the "Search Weight" field (or feature)?? How I can add (or define) search weight?

Thank you very much,

Paul
Quote Reply
Re: [Skiff] Where is the Search_Weight ? In reply to
If this is the solution, then I've found it:

http://www.gossamer-threads.com/...i?post=223347#223347

Paul
Quote Reply
Re: [Skif] Where is the Search_Weight ? In reply to
There is NO SearchWeight function in DBManSQL!

Regards,
Manu

Shopping Portal Shop-Netz.de® | Partnerprogramme | Flugreisen & Billigflüge | KESTERMEDIA e.K. | European Affiliate Marketing Forum.
Quote Reply
Re: [ManuGermany] Where is the Search_Weight ? In reply to
Thanks for your answer, Manu.

But, if there are no Weights in DBMan SQL, what, in that case, means this sub (this is a part of GT::SQL::Table, sub new):

Code:


{ # Check for weights or file columns and set _file and _index accordingly

my ($found_file, $found_weight);

my $c = $self->{schema}->{cols};

for (keys %$c) {

if (!$found_file and $c->{$_}->{form_type} and uc $c->{$_}->{form_type} eq 'FILE') {

$self->_file_cols();

$self->{_file} = ++$found_file;

}

if (!$found_weight and $c->{$_}->{weight}) {

$self->{_index} = ++$found_weight;

}

last if $found_file and $found_weight;

}

}


..... and so on


There are 72 files with "weight" in "admin" directory of DBMan SQL package.

Hope, you now the answer.

Regards,

Paul
Quote Reply
Re: [Skiff] Where is the Search_Weight ? In reply to
Hi,

There is no search weight feature in DBMan SQL, but you can use our WordSearch plugin for searching words or letters. You can download it at your plugin download area.

TheStone.

B.