Gossamer Forum
Home : Products : Links 2.0 : Discussions :

search title and description synchronous

Quote Reply
search title and description synchronous
i have the following problem:

precondition: i have 3 entrys in my links-database
entry1:
title: ab
description: xyz
entry2:
title: ab
description: vw
entry3:
title: cd
description: xyz

with the following search string: "ab xyz" i get
-with the standard-search-form: 'no results'
-with the advanced-search-form with "or" activiated i get all 3 entrys

is there any possiblity to search on more then one field at the same time?
with the search string "ab xyz" i will only get the entry1 as the result
this problem exists on every links-installation i have tested

there were a lot of postings to this problem before, but there was no solution
(to put all link-data to a special keyword-field is a very bad solution, because of the double size of the database-file)

is there any solution?

thanks
obi






Quote Reply
Re: [obi] search title and description synchronous In reply to
Define your search fields in links.def:

@search_fields = (1,2,5);

Keyword fields add a lot of relevancy, just limit the amount of keywords a link owner can submit.
Quote Reply
Re: [Tho:mas] search title and description synchronous In reply to
thanks thomas

the line '@search_fields = (1,2,5);' exisits in my links.def - that is not the problem


i will illustrate the problem with your links 2.0 installation at http://links.japanref.com/linksdemo/

there exists a entry at http://links.japanref.com/linksdemo/Internet/
title: 'Almano - Das Web Portal'
description: 'Bisher hat Sie das Internet immer nur Geld gekostet, doch Almano zeigt Ihnen wie Sie im Netz Geld verdienen können.'


try to use the search string 'Almano Bisher' (which are the first words of the title and the description)
-> you will get the message: 'no matching records'


i think this is a really important bug




Quote Reply
Re: [obi] search title and description synchronous In reply to
Well, you could work with hidden fields, as explained in other threads, or add a keyword field to your search fields, which would solve your problems. Smile