Perlfect Solutions
 

[Perlfect-search] RE: perlfect-search digest, Vol 1 #389 - 4 msgs

Maninder, Singh perlfect-search@perlfect.com
Thu, 14 Nov 2002 20:28:33 +0530
Hi Daniel,

Need a small help.
I need to call 2 different templates (search.html files) based on 2
different domains.
In the code it is referenced by $SEARCH_TEMPLATE{$lang}

Now how do I call say search.html for mandy.com and search_new.html for
daniel.com in the search results?

Thanks,
Mandy.

-----Original Message-----
From: perlfect-search-request@perlfect.com
[mailto:perlfect-search-request@perlfect.com]
Sent: Saturday, October 05, 2002 5:30 PM
To: perlfect-search@perlfect.com
Subject: perlfect-search digest, Vol 1 #389 - 4 msgs


Send perlfect-search mailing list submissions to
        perlfect-search@perlfect.com

To subscribe or unsubscribe via the World Wide Web, visit
        
or, via email, send a message with subject or body 'help' to
        perlfect-search-request@perlfect.com

You can reach the person managing the list at
        perlfect-search-admin@perlfect.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of perlfect-search digest..."


Today's Topics:

   1. Highlighting of search terms in the search result (John Q. Galt)
   2. Re: Highlighting of search terms in the search result (Daniel Naber)
   3. (no subject) (Maninder, Singh)
   4. Re: (no subject) (Daniel Naber)

--__--__--

Message: 1
From: "John Q. Galt" <johnqgalt@myrealbox.com>
To: perlfect-search@perlfect.com
Date: Fri, 04 Oct 2002 19:05:02 +0000
Subject: [Perlfect-search] Highlighting of search terms in the search result
Reply-To: perlfect-search@perlfect.com

How can I highlight search terms in the search 
result, no matter where those terms appear within the 
document?

For example, a search for the word "highlight" on the 
perlfect site:

http://perlfect.com/freescripts/search/

gives 3 results, all with the relevant terms 
displayed. However, most sites that use perlfect do 
not have this feature. For example, a search for 
"highlight" at:

http://www.acky.net/

displays only the first few lines of each document, 
and not the relevant terms.


--__--__--

Message: 2
From: Daniel Naber <daniel.naber@t-online.de>
To: perlfect-search@perlfect.com
Subject: Re: [Perlfect-search] Highlighting of search terms in the search
result
Date: Fri, 4 Oct 2002 22:01:21 +0200
Cc: "John Q. Galt" <johnqgalt@myrealbox.com>
Reply-To: perlfect-search@perlfect.com

On Friday 04 October 2002 21:05, John Q. Galt wrote:

> How can I highlight search terms in the search
> result, no matter where those terms appear within the
> document?

See the $CONTEXT_SIZE option in conf.pl.

regards
 Daniel

-- 
http://www.danielnaber.de

--__--__--

Message: 3
From: "Maninder, Singh" <mandiv@corp.untd.com>
To: "'perlfect-search@perlfect.com'" <perlfect-search@perlfect.com>
Date: Sat, 5 Oct 2002 15:49:13 +0530 
Subject: [Perlfect-search] (no subject)
Reply-To: perlfect-search@perlfect.com

Would it be possible to modify the search engine so that (based on a metatag
in the doc) it excludes pages that are not appropriate to the platform
(Windows or Mac) that the user has?  I would imagine that the engine would
look for some type of Platform metatag, and it will only show that page if
either the platform is listed in the tag, or no Platform metatag exists.


--__--__--

Message: 4
From: Daniel Naber <daniel.naber@t-online.de>
To: perlfect-search@perlfect.com
Subject: Re: [Perlfect-search] (no subject)
Date: Sat, 5 Oct 2002 13:19:47 +0200
Cc: "Maninder, Singh" <mandiv@corp.untd.com>
Reply-To: perlfect-search@perlfect.com

On Saturday 05 October 2002 12:19, Maninder, Singh wrote:

> Would it be possible to modify the search engine so that (based on a
> metatag in the doc) it excludes pages that are not appropriate to the
> platform (Windows or Mac) that the user has?

If you know a bit Perl, sure. You could add a database file, like 
$INV_INDEX_DB_FILE and all the others. During indexing you analyse the 
meta tags and write the information into that "file" (it's a hash, the key 
would be the document id, the value whatever value you're interested in). 
When searching you query that information in answer_query(), just like 
it's done for query->param('include') and query->param('exclude').

In other words: it should be quite simple.

regards
 Daniel

-- 
http://www.danielnaber.de


--__--__--

_______________________________________________
perlfect-search mailing list
perlfect-search@perlfect.com



End of perlfect-search Digest