Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Alex Help ! Search Keyword Problem ?

Quote Reply
Alex Help ! Search Keyword Problem ?
To day i found 1 problem for link 1.11 & 1.13.
The problem is keyword search for
category and link title,links description.

When i search keyword is 'wind'
Can search category title kwyword math 'windows'

But can't search link title,links description kwyword math 'windows'

Also the keyword is 'dows' or dow' ,

Can search category title kwyword math 'windows'

But can't search link title,links description kwyword math 'windows'

Alex Please Help me?
Also anybody know this problem Please Help me .

Thnaks.


Quote Reply
Re: Alex Help ! Search Keyword Problem ? In reply to
Hi Zero One,

This substring bug was fixed in Version 1.13. Be shure to have the 1.13 version of Search.pm.

regards, alexander

Quote Reply
Re: Alex Help ! Search Keyword Problem ? In reply to
Hi Alex404,

I just update to 1.13 ,
and i double confirm i am use Search.pm version 1.13 ,

But still have same problem.

Help Me.

Thanks.

Zero One



Quote Reply
Re: Alex Help ! Search Keyword Problem ? In reply to
Zero One,

Have you tried to 're-index'? If not, use the re-index feature to rebuild your search indexes.

If this doesn't work and your categories are searched, but your links are not, then it could be that you haven't got any weighted (indexed) links fields.

Go to your admin panel. On the left side find Table Maintenance. Under this click on Links to bring up the links table maint in the main frame. At the top of the main frame click on Edit Table Definition to bring up the list of fields in your links table.

Look down the column on the far right under Index Weight. Do all of the fields have a weight of '0' (zero)? If so, you'll need to index some of those fields before links can search them. Here's the details from the admin panel:

In Reply To:
Index Weight - If set to > 0, this field will be indexed. The search engine can return most relevant hits first, so each field is assigned a score. In the default setup, a hit in the Title is worth 3, whereas a hit in the description is only worth 1.
Once you've setup some weight's on the links, do a 're-index' to rebuild the search indexes.

Hope this helps.

All the best
Shaun

Quote Reply
Re: Alex Help ! Search Keyword Problem ? In reply to
I am also having this problem. I have installed the new files from Links 1.3 and the indexed weights are still present in the links and category tables. I have 'Re-Indexed'.

----I am only having problems matching on links, "dump" will match on "dumptruck" in categories but not on links.

A search for "dump" will not return "dumptruck", but will return "dump truck". Is this the bug that was fixed?


Quote Reply
Re: Alex Help ! Search Keyword Problem ? In reply to
OK,

Try this and let me know if it makes a difference. In search.cgi find # Get/Set the search options. and change the following line to:

($in->param('bool') =~ /^(and|or)$/i) ? ($bool = uc $1) : ($bool = 'OR');

I seem to remember that in the 1.13 upgrade it was AND, which only brought back a limited number of exact matches to my query string so I changed it to OR to get all matches.

Did this work?

All the best
Shaun

Quote Reply
Re: Alex Help ! Search Keyword Problem ? In reply to
quango,

Thanks for the reply, but it already does have the 'OR'.

Is there any other places?

Also, which version is has the bugs fixed... 1.13 or lsqldevalpha3.tar.gz?

Thanks again for the help!

Chad

Quote Reply
Re: Alex Help ! Search Keyword Problem ? In reply to
Is there anywhere in the script that makes the default search a 'substring' search, as opposed to a 'exact word' search. It seems that this is the only way it works right.

Quote Reply
Re: Alex Help ! Search Keyword Problem ? In reply to
Just pass the default parameters, or change them in the script.

This all works the same way. In your template, just move the "checked" to the other box. In the script, just change the default value to the one you want.

http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/

Quote Reply
Re: Alex Help ! Search Keyword Problem ? In reply to
Pugdog, how do I change the default value in the script?

Thanks,
Chad

Quote Reply
Re: Alex Help ! Search Keyword Problem ? In reply to
Oh, I think I found it...
I Changed the 1 & 0 to the following:

($in->param('substring')) ? ($ww = 1) : ($ww = 0);


Quote Reply
Re: Alex Help ! Search Keyword Problem ? In reply to
Chad J,

Well done. I've just checked my search.cgi script and I already had $ww=0; under the params. I added it after seeing a previous thread about substring searching and forgot all about it - it's a good one to remember for next time this crops up!

All the best
Shaun

Quote Reply
Re: Alex Help ! Search Keyword Problem ? In reply to
Thanks You for Your All Help.
The problem is settle Now.
Thanks Again.