Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Disable field for search

Quote Reply
Disable field for search
I am having a small question on how to disable any fields, so any term within those link properties won't be used while producing search results.

I have tried setting search weight to 0, -1.. but still no luck.

Vishal

Vishal
-------------------------------------------------------
Quote Reply
Re: [NeedScripts.Com] Disable field for search In reply to
I think you need INTERNAL INDEXING turned on for the 'search weights' to work...

Database > Links > Properties > Indexing Scheme ...

...then you need to rebuild the search (Build > Rebuild Search I think)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Disable field for search In reply to
In Reply To:
...then you need to rebuild the search (Build > Rebuild Search I think)

Cheers


I did that too... :(

Vishal
-------------------------------------------------------
Quote Reply
Re: [NeedScripts.Com] Disable field for search In reply to
But do you have Internal Indexing turned on?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Disable field for search In reply to
In Reply To:
But do you have Internal Indexing turned on?

Cheers


And how do I do that... ?

Vishal

Vishal
-------------------------------------------------------
Quote Reply
Re: [NeedScripts.Com] Disable field for search In reply to
You can do it in SSH if you want.

perl nph-index.cgi --DRIVER=INTERNAL

...I'm not definate on the format, but you can type;

perl nph-index.cgi

....for more details on that :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Disable field for search In reply to
In Reply To:
You can do it in SSH if you want.

perl nph-index.cgi --DRIVER=INTERNAL

...I'm not definate on the format, but you can type;

perl nph-index.cgi

....for more details on that :)

Cheers


and if I do this on a live web site.. what are the chances that I am going to ruin the database of will face tons of problem.. Shocked

Vishal

Vishal
-------------------------------------------------------
Quote Reply
Re: [NeedScripts.Com] Disable field for search In reply to
How large is the database? Setting to iNTERNAL INDEXING will just speed up your search results. The only down side, is that you need to run this daily (or however often you need), and that will update the search keywords etc for you :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Disable field for search In reply to
Ouch.. so if I am adding few hundred links every day/week, then I will have to do it again.. :( I was hoping that something like this would be inbuild within links sql.. or is it there and am I missing something?

Vishal

Vishal
-------------------------------------------------------
Quote Reply
Re: [NeedScripts.Com] Disable field for search In reply to
The only real reason for having INTERNAL indexing, is to speed searches up. If you have 100,000 or so links, the search speeds go down a lot (and if a lot of people are requesting it at the same time, you can crash the server). I've seen directories with just over a million links, take over 3 minutes to search. With internal indexing on, it takes less than a couple of seconds :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [NeedScripts.Com] Disable field for search In reply to
Maybe Admin > Setup > Search Options > search_blocked ?
Quote Reply
Re: [Payooo] Disable field for search In reply to
In Reply To:
Maybe Admin > Setup > Search Options > search_blocked ?


I don't know if that would work, as I also want to diable the search of the data within certain fields and the data for each listing is diffeent. In addition to that, there this data also contains terms/words that can be used as a valid search phrase on the site.

This is what Links SQL Help file says ::

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.

I was thinking that if I were to set certain link properties at -1, it will ignore those fields while giving our search results.. but it is not doing so :(

Vishal

Vishal
-------------------------------------------------------
Quote Reply
Re: [NeedScripts.Com] Disable field for search In reply to
As Andy said - the weights only come into effect if you are using Internal indexing.

You need to either go to

Database->Links->Properties and set the indexing to INTERNAL at the bottom of this page

or run

perl nph-index.cgi --change-driver=INTERNAL

in your admin directory.

Once you've done this you must reindex

perl nph-index.cgi --reindex

As long as you don't add or delete any of your links via MySQLMan and only use the Links Admin you shouldn't need to run this again.

It shouldn't mess up your database but your search won't work properly between the time that you change the driver and finish the reindex - this can take quite a long time for a large directory so you might want to do it during the night.
Quote Reply
Re: [afinlr] Disable field for search In reply to
Ha Ha.... Laura you rock :)

It worked.. :)

Thanks a lot

Smile Smile Smile Smile Smile Smile Smile

Vishal

Vishal
-------------------------------------------------------
Quote Reply
Re: [NeedScripts.Com] Disable field for search In reply to
hum... I guess maybe I spoke to early.. :(

it worked for a bit and then it is still showing search results for the data within the fields where the search weight has been set to 0, -1, -10.. :(

Below is the process::
  1. Set link properties to Internal.
  2. Resync Database
  3. Rebuild Tables
  4. Rebuild Search
  5. Perform search from public view of the site.

any idea what did I do wrong?

Vishal

Vishal
-------------------------------------------------------
Quote Reply
Re: [NeedScripts.Com] Disable field for search In reply to
Try removing the search weight completely.

Edit: Also, check that it really does say internal in the Links properties now. You seem to have done everything right so I can't see why it wouldn't be working.

Last edited by:

afinlr: Feb 6, 2004, 6:03 PM