[Xapian-discuss] Title only Display and Url Link

Olly Betts olly at survex.com
Wed Apr 4 08:14:59 BST 2007


On Tue, Apr 03, 2007 at 09:50:48PM -0400, Ram Peters wrote:
> I want to have title and description indexed.  But on the serch
> result, I just want to display only
> the title with url link to web page.  How do I do the following:
> 
> 1) only display the title.
> 2) make the title a clickable link to the html file?

Assuming you're using Omega, just edit the query template and remove
this part:

$highlight{$field{sample},$terms}$if{$field{sample},...}

If you're not using Omega, you need to ignore the bit of the document
data where you've put the description.  I can't really be more precise
as it depends how you're storing information in the document data...

Cheers,
    Olly



More information about the Xapian-discuss mailing list