RE: perlfect-search digest, Vol 1 #389 - 4 msgs
"Maninder, Singh" <[email protected]>
| Newsgroups | gmane.comp.web.perlfect-search |
|---|---|
| Message-ID | <C9CFA7F13284D411B41B009027E8D0EC07BAC4F9@hydmail2.hyd.office.juno.com> |
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: [email protected]
[mailto:[email protected]]
Sent: Saturday, October 05, 2002 5:30 PM
To: [email protected]
Subject: perlfect-search digest, Vol 1 #389 - 4 msgs
Send perlfect-search mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://perlfect.com/mailman/listinfo/perlfect-search
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
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" <[email protected]>
To: [email protected]
Date: Fri, 04 Oct 2002 19:05:02 +0000
Subject: [Perlfect-search] Highlighting of search terms in the search result
Reply-To: [email protected]
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 <[email protected]>
To: [email protected]
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" <[email protected]>
Reply-To: [email protected]
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" <[email protected]>
To: "'[email protected]'" <[email protected]>
Date: Sat, 5 Oct 2002 15:49:13 +0530
Subject: [Perlfect-search] (no subject)
Reply-To: [email protected]
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 <[email protected]>
To: [email protected]
Subject: Re: [Perlfect-search] (no subject)
Date: Sat, 5 Oct 2002 13:19:47 +0200
Cc: "Maninder, Singh" <[email protected]>
Reply-To: [email protected]
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
[email protected]
http://perlfect.com/mailman/listinfo/perlfect-search
End of perlfect-search Digest
_______________________________________________
perlfect-search mailing list
[email protected]
To unsubscribe, set other personal options or view the list archives please visit:
http://perlfect.com/mailman/listinfo/perlfect-search