Re: Background color searched word
src/java/org/apache/nutch/searcher/Summary.java It has a b to mark the term. I typically edit this and use a CSS style sheet to make this easier to customize for my clients. -byron --- Andy Morris [EMAIL PROTECTED] wrote: How do I change the background color on the results page for the words used in the search. So they stand out more. I know they are bold, I just want them to pop out... I have looked at the style.html and have changed some info but I can't find where to change the bold tag. Thanks, Andy
Re: Background color searched word
Could you, please, give more informations about this? How to edit this file? Tanks
Re: Background color searched word
Hi Andy, I don't know which version of Nutch you're using, but in 0.7, it's in the Summary.Highlight class in org.apache.nutch.searcher. It should be clear how to change it. Regards, David Wallace. Date: Wed, 11 Jan 2006 15:20:05 -0500 From: Andy Morris [EMAIL PROTECTED] To: nutch-user@lucene.apache.org Subject: [Nutch-general] Background color searched word Reply-To: [EMAIL PROTECTED] How do I change the background color on the results page for the words used in the search. So they stand out more. I know they are bold, I just want them to pop out... I have looked at the style.html and have changed some info but I can't find where to change the bold tag. Thanks, Andy=20 This email may contain legally privileged information and is intended only for the addressee. It is not necessarily the official view or communication of the New Zealand Qualifications Authority. If you are not the intended recipient you must not use, disclose, copy or distribute this email or information in it. If you have received this email in error, please contact the sender immediately. NZQA does not accept any liability for changes made to this email or attachments after sending by NZQA. All emails have been scanned for viruses and content by MailMarshal. NZQA reserves the right to monitor all email communications through its network.
RE: Background color searched word
I have summary.java in org/apache/nutch/searcher This is the text I found.. /** A highlighted fragment of text within a summary. */ public static class Highlight extends Fragment { /** Constructs a highlighted fragment for the given text. */ public Highlight(String text) { super(text); } what do I need to change? andy -Original Message- From: David Wallace [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 11, 2006 5:15 PM To: nutch-user@lucene.apache.org Subject: Re: Background color searched word Hi Andy, I don't know which version of Nutch you're using, but in 0.7, it's in the Summary.Highlight class in org.apache.nutch.searcher. It should be clear how to change it. Regards, David Wallace. Date: Wed, 11 Jan 2006 15:20:05 -0500 From: Andy Morris [EMAIL PROTECTED] To: nutch-user@lucene.apache.org Subject: [Nutch-general] Background color searched word Reply-To: [EMAIL PROTECTED] How do I change the background color on the results page for the words used in the search. So they stand out more. I know they are bold, I just want them to pop out... I have looked at the style.html and have changed some info but I can't find where to change the bold tag. Thanks, Andy=20 This email may contain legally privileged information and is intended only for the addressee. It is not necessarily the official view or communication of the New Zealand Qualifications Authority. If you are not the intended recipient you must not use, disclose, copy or distribute this email or information in it. If you have received this email in error, please contact the sender immediately. NZQA does not accept any liability for changes made to this email or attachments after sending by NZQA. All emails have been scanned for viruses and content by MailMarshal. NZQA reserves the right to monitor all email communications through its network.
Re: Background color searched word
Andy, I have just committed some changes in trunk ( http://svn.apache.org/viewcvs.cgi?rev=368172view=rev) in order to change summary highlight and ellipsis without changing some piece of code. Just edit the style sheet defined in src/web/include/style.html to change the way highlights are displayed (ellipsis can be changed too). Of course, after you made changes to this stylesheet you need to rebuild and redeploy the war file to see changes. The next step will be to use a stylesheet file instead of a html include. Regards Jérôme On 1/12/06, Andy Morris [EMAIL PROTECTED] wrote: I have summary.java in org/apache/nutch/searcher This is the text I found.. /** A highlighted fragment of text within a summary. */ public static class Highlight extends Fragment { /** Constructs a highlighted fragment for the given text. */ public Highlight(String text) { super(text); } what do I need to change? andy -Original Message- From: David Wallace [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 11, 2006 5:15 PM To: nutch-user@lucene.apache.org Subject: Re: Background color searched word Hi Andy, I don't know which version of Nutch you're using, but in 0.7, it's in the Summary.Highlight class in org.apache.nutch.searcher. It should be clear how to change it. Regards, David Wallace. Date: Wed, 11 Jan 2006 15:20:05 -0500 From: Andy Morris [EMAIL PROTECTED] To: nutch-user@lucene.apache.org Subject: [Nutch-general] Background color searched word Reply-To: [EMAIL PROTECTED] How do I change the background color on the results page for the words used in the search. So they stand out more. I know they are bold, I just want them to pop out... I have looked at the style.html and have changed some info but I can't find where to change the bold tag. Thanks, Andy=20 This email may contain legally privileged information and is intended only for the addressee. It is not necessarily the official view or communication of the New Zealand Qualifications Authority. If you are not the intended recipient you must not use, disclose, copy or distribute this email or information in it. If you have received this email in error, please contact the sender immediately. NZQA does not accept any liability for changes made to this email or attachments after sending by NZQA. All emails have been scanned for viruses and content by MailMarshal. NZQA reserves the right to monitor all email communications through its network. -- http://motrech.free.fr/ http://www.frutch.org/
Re: Background color searched word
Hi Jérôme Is it better add id to the hits span so that we can highlight it or not in the javascript? /** Returns an HTML representation of this fragment. */ public String toString() { return span id=nutch-hl class=\highlight\ + super.toString() + /span; } Thanks /Jack On 1/12/06, Jérôme Charron [EMAIL PROTECTED] wrote: Andy, I have just committed some changes in trunk ( http://svn.apache.org/viewcvs.cgi?rev=368172view=rev) in order to change summary highlight and ellipsis without changing some piece of code. Just edit the style sheet defined in src/web/include/style.html to change the way highlights are displayed (ellipsis can be changed too). Of course, after you made changes to this stylesheet you need to rebuild and redeploy the war file to see changes. The next step will be to use a stylesheet file instead of a html include. Regards Jérôme On 1/12/06, Andy Morris [EMAIL PROTECTED] wrote: I have summary.java in org/apache/nutch/searcher This is the text I found.. /** A highlighted fragment of text within a summary. */ public static class Highlight extends Fragment { /** Constructs a highlighted fragment for the given text. */ public Highlight(String text) { super(text); } what do I need to change? andy -Original Message- From: David Wallace [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 11, 2006 5:15 PM To: nutch-user@lucene.apache.org Subject: Re: Background color searched word Hi Andy, I don't know which version of Nutch you're using, but in 0.7, it's in the Summary.Highlight class in org.apache.nutch.searcher. It should be clear how to change it. Regards, David Wallace. Date: Wed, 11 Jan 2006 15:20:05 -0500 From: Andy Morris [EMAIL PROTECTED] To: nutch-user@lucene.apache.org Subject: [Nutch-general] Background color searched word Reply-To: [EMAIL PROTECTED] How do I change the background color on the results page for the words used in the search. So they stand out more. I know they are bold, I just want them to pop out... I have looked at the style.html and have changed some info but I can't find where to change the bold tag. Thanks, Andy=20 This email may contain legally privileged information and is intended only for the addressee. It is not necessarily the official view or communication of the New Zealand Qualifications Authority. If you are not the intended recipient you must not use, disclose, copy or distribute this email or information in it. If you have received this email in error, please contact the sender immediately. NZQA does not accept any liability for changes made to this email or attachments after sending by NZQA. All emails have been scanned for viruses and content by MailMarshal. NZQA reserves the right to monitor all email communications through its network. -- http://motrech.free.fr/ http://www.frutch.org/ -- Keep Discovering ... ... http://www.jroller.com/page/jmars