Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

How to make search work with customer table

Quote Reply
How to make search work with customer table
Hi All,

since i have created the cached_page plugin which caches every link page and store the pages in a table. i want users to be able to search the content of cached pages. i have modified the search.pm and made it actually working so when a user do a search which will also return what it found in the cached table. However, it seems that boolean and substring settings not working with this table. Although I set boolean as "and" and no substring, it always returns substring and "or" results. Is this an index problem, how can i have linksql index my table too?

Thank you for any clues.

Long
Quote Reply
Re: [long327] How to make search work with customer table In reply to
I also have the problem that I can't turn the substring off in my custom tables. I'm using internal indexing.

To change the indexing for a custom table you can go to

admin.cgi?do=editor_table_form&ID-opt=%3D&Username-opt=%3D&db=Links&todo=editor_table_form

and change Links to the name of your table (this assumes that you have a def file for the table). However, if you change it to INTERNAL you also have to rewrite the nph-index.cgi file so that it will reindex your custom table.

Laura.
The UK High Street

Last edited by:

afinlr: Feb 22, 2004, 7:42 AM
Quote Reply
Re: [afinlr] How to make search work with customer table In reply to
Hi Laura,

Thank you very much for reply. It works great.

Long