R: (no subject)
"Zanzico Gioele" <[email protected]> Thu, 19 Mar 2009 16:59:57 +0100
| Newsgroups | gmane.comp.cms.jahia.devel |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --===============0020501997== Content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C9A8AB.C04D7128" This is a multi-part message in MIME format. ------_=_NextPart_001_01C9A8AB.C04D7128 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Benjamin, sorry I forgot to mention what version of Jahia. I confirm that I'm working on JAHIA 5. =20 Our jahia version is jahia5.0.4_r24398.jar But I don't find on our installationa the CompassHighlighter class. =20 And it is not present also in WEB-INF classes. =20 tks for your quick answer Ciao gioele =20 =20 Zanzico Gioele Senior Web Analyst Vitec Group - Imaging & Staging Tel +39 0424 555 507 www.vitecgroup.it <blocked::http://www.manfrotto.com/>=20 P Respect the environment: don't print this e-mail, if not necessary.=20 ________________________________ Da: [email protected] [mailto:[email protected]] Per cont= o di Benjamin Papez Inviato: gioved=EC 19 marzo 2009 16.30 A: Here you can discuss and comment current and future developments of Jahia Oggetto: Re: [dev_list] (no subject) =20 Ciao Gioele, please always mention which Jahia version you are using, since Jahia 6 is o= ut and Manfrotto still used Jahia 4, so there are different possibilities. = I believe your question is based on Jahia 5, because in Jahia 6 I have alre= ady changed the teaser retrieval. In Jahia 5 you may see, that the teaser i= s created in the JSP, so that the one returned from the searchhit object is= just the default (in Jahia 6 the API will already return the highlighted t= easer).=20 Now for Jahia 5 you have to add this in your Search class : ... String description =3D thisHit.getTeaser(); CompassHighlighter highlighter =3D thisHit.highlighter(); if ( highlighter !=3D null ){ description =3D highlighter.fragmentsWithSeparator( JahiaSearchConstant.CONTENT_FULLTEXT_SEARCH_FIELD); description =3D description.replaceAll("\\r\\n", "\r"); description =3D description.replaceAll("\\r{2,}", "<br/>"); } ... Regards, Benjamin On 19.03.2009 15:47 Zanzico Gioele wrote:=20 Hi,=20 doing a search implementing the API of Jahia (Search.java) it works and the= number of results seems correct. Doing the same search (the same search key) with the standard .jsp of Jahia= (searchresults.jsp)=20 in effect we get the same number of record, but the teaser is different. In our "custom" search they teaser seems to keep only a little bit of the d= escription,=20 with the "standard" search it is more long, more or less with all the conte= nt of the result. =20 Does it is necessary to change something on our code to get the same teaser or using the API this is the correct result ? =20 tks ciao gioele =20 Zanzico Gioele Senior Web Analyst Vitec Group - Imaging & Staging Tel +39 0424 555 507 MailScanner has detected a possible fraud attempt from "www.manfrotto.com" = claiming to be www.vitecgroup.it <blocked::http://www.manfrotto.com/>=20 P Respect the environment: don't print this e-mail, if not necessary.=20 =20 =20 ________________________________ =20 _______________________________________________ dev_list mailing list [email protected] http://lists.jahia.org/cgi-bin/mailman/listinfo/dev_list =20=20 ------_=_NextPart_001_01C9A8AB.C04D7128 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr= osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns=3D"http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-1"> <meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)"> <!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style> <![endif]--> <style> <!-- /* Font Definitions */ @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} @font-face {font-family:Verdana; panose-1:2 11 6 4 3 5 4 4 2 4;} @font-face {font-family:Webdings; panose-1:5 3 1 2 1 5 9 6 7 3;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman"; color:black;} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline;} pre {margin:0cm; margin-bottom:.0001pt; font-size:10.0pt; font-family:"Courier New"; color:black;} span.StileMessaggioDiPostaElettronica17 {mso-style-type:personal; font-family:Verdana; color:windowtext; font-weight:normal; font-style:normal; text-decoration:none none;} span.StileMessaggioDiPostaElettronica19 {mso-style-type:personal-reply; font-family:Verdana; color:blue; font-weight:normal; font-style:normal; text-decoration:none none;} @page Section1 {size:595.3pt 841.9pt; margin:70.85pt 2.0cm 2.0cm 2.0cm;} div.Section1 {page:Section1;} --> </style> <!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body bgcolor=3Dwhite lang=3DIT link=3Dblue vlink=3Dpurple> <div class=3DSection1> <p class=3DMsoNormal><font size=3D1 color=3Dblack face=3DVerdana><span lang= =3DEN-GB style=3D'font-size:8.0pt;font-family:Verdana'>Hi Benjamin,<o:p></o:p></span= ></font></p> <p class=3DMsoNormal><font size=3D1 color=3Dblack face=3DVerdana><span lang= =3DEN-GB style=3D'font-size:8.0pt;font-family:Verdana'>sorry I forgot to mention what version of Jahia.<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D1 color=3Dblack face=3DVerdana><span lang= =3DEN-GB style=3D'font-size:8.0pt;font-family:Verdana'>I confirm that I’m work= ing on JAHIA 5.<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D1 color=3Dblack face=3DVerdana><span lang= =3DEN-GB style=3D'font-size:8.0pt;font-family:Verdana'><o:p> </o:p></span></fon= t></p> <p class=3DMsoNormal><font size=3D1 color=3Dblack face=3DVerdana><span lang= =3DEN-GB style=3D'font-size:8.0pt;font-family:Verdana'>Our jahia version is jahia5.0= .4_r24398.jar<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D1 color=3Dblack face=3DVerdana><span lang= =3DEN-GB style=3D'font-size:8.0pt;font-family:Verdana'>But I don’t find on our installationa the CompassHighlighter class.<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D1 color=3Dblack face=3DVerdana><span lang= =3DEN-GB style=3D'font-size:8.0pt;font-family:Verdana'><o:p> </o:p></span></fon= t></p> <p class=3DMsoNormal><font size=3D1 color=3Dblack face=3DVerdana><span lang= =3DEN-GB style=3D'font-size:8.0pt;font-family:Verdana'>And it is not present also in= WEB-INF classes.<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D1 color=3Dblack face=3DVerdana><span lang= =3DEN-GB style=3D'font-size:8.0pt;font-family:Verdana'><o:p> </o:p></span></fon= t></p> <p class=3DMsoNormal><font size=3D1 color=3Dblack face=3DVerdana><span lang= =3DEN-GB style=3D'font-size:8.0pt;font-family:Verdana'>tks for your quick answer<o:p= ></o:p></span></font></p> <p class=3DMsoNormal><font size=3D1 color=3Dblack face=3DVerdana><span lang= =3DEN-GB style=3D'font-size:8.0pt;font-family:Verdana'>Ciao<o:p></o:p></span></font>= </p> <p class=3DMsoNormal><font size=3D1 color=3Dblack face=3DVerdana><span lang= =3DEN-GB style=3D'font-size:8.0pt;font-family:Verdana'>gioele<o:p></o:p></span></fon= t></p> <p class=3DMsoNormal><font size=3D1 color=3Dblack face=3DVerdana><span lang= =3DEN-GB style=3D'font-size:8.0pt;font-family:Verdana'><o:p> </o:p></span></fon= t></p> <p class=3DMsoNormal><font size=3D1 color=3Dblue face=3DVerdana><span lang= =3DEN-GB style=3D'font-size:8.0pt;font-family:Verdana;color:blue'><o:p> </o:p><= /span></font></p> <div> <p class=3DMsoNormal style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt= :auto'><b><font size=3D1 color=3Dblack face=3DArial><span lang=3DEN-GB style=3D'font-size:8= .0pt; font-family:Arial;font-weight:bold'>Zanzico Gioele</span></font></b><span lang=3DEN-GB><br> </span><b><font size=3D1 face=3DArial><span lang=3DEN-GB style=3D'font-size= :8.0pt; font-family:Arial;font-weight:bold'>Senior Web Analyst<o:p></o:p></span></f= ont></b></p> <p class=3DMsoNormal style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt= :auto'><font size=3D1 color=3Dblack face=3DArial><span lang=3DEN-GB style=3D'font-size:8= .0pt; font-family:Arial'>Vitec Group - Imaging & Staging<br> Tel +39 0424 555 507<br> </span></font><font size=3D1 face=3DArial><span lang=3DEN-US style=3D'font-= size:8.0pt; font-family:Arial'><a href=3D"blocked::http://www.manfrotto.com/" title=3D"blocked::http://www.manfrotto.com/ http://www.manfrotto.com/">= </span><font color=3D"red"><b>MailScanner has detected a possible fraud att= empt from "www.manfrotto.com" claiming to be</b></font> <span title=3D"blocked::http://www.manfrotto.com/ http://www.manfrotto.com/">= www.vitecgroup.it</a><br> </span></font><font size=3D6 color=3Dgreen face=3DWebdings><span lang=3DEN-= US style=3D'font-size:22.0pt;font-family:Webdings;color:green'>P </span></font= ><b><font size=3D1 color=3Dgreen face=3DArial><span lang=3DEN-US style=3D'font-size:8= .0pt; font-family:Arial;color:green;font-weight:bold'>Respect the environment: don’t print this e-mail, if not necessary.</span></font></b><font siz= e=3D1 face=3DArial><span lang=3DEN-US style=3D'font-size:8.0pt;font-family:Arial'= > </span></font><span lang=3DEN-GB><o:p></o:p></span></p> </div> <div> <div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font siz= e=3D3 color=3Dblack face=3D"Times New Roman"><span style=3D'font-size:12.0pt;colo= r:windowtext'> <hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1> </span></font></div> <p class=3DMsoNormal><b><font size=3D2 color=3Dblack face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma;color:windowtext;font-weight:b= old'>Da:</span></font></b><font size=3D2 color=3Dblack face=3DTahoma><span style=3D'font-size:10.0pt;font-f= amily:Tahoma; color:windowtext'> [email protected] [mailto:[email protected]] <b><span style=3D'font-weight:bold'>Per= conto di </span></b>Benjamin Papez<br> <b><span style=3D'font-weight:bold'>Inviato:</span></b> gioved=EC 19 marzo = 2009 16.30<br> <b><span style=3D'font-weight:bold'>A:</span></b> Here you can discuss and comment current and future developments of Jahia<br> <b><span style=3D'font-weight:bold'>Oggetto:</span></b> Re: [dev_list] (no subject)</span></font><font color=3Dblack><span style=3D'color:windowtext'>= <o:p></o:p></span></font></p> </div> <p class=3DMsoNormal><font size=3D3 color=3Dblack face=3D"Times New Roman">= <span style=3D'font-size:12.0pt'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D3 color=3Dblack face=3D"Times New Roman">= <span style=3D'font-size:12.0pt'>Ciao Gioele,<br> <br> please always mention which Jahia version you are using, since Jahia 6 is o= ut and Manfrotto still used Jahia 4, so there are different possibilities. I believe your question is based on Jahia 5, because in Jahia 6 I have already changed the teaser retrieval. In Jahia 5 you may see, that the teaser is created in the JSP, so that the one returned from the searchhit object is j= ust the default (in Jahia 6 the API will already return the highlighted teaser)= . <br> <br> Now for Jahia 5 you have to add this in your Search class :<br> ...<br> String description =3D thisHit.getTeaser();<br> CompassHighlighter highlighter =3D thisHit.highlighter();<br> if ( highlighter !=3D null ){<br> description =3D highlighter.fragmentsWithSeparator(<br> JahiaSearchConstant.CONTENT_FULLTEXT_SEARCH_FIELD);<br> description =3D description.replaceAll("\\r\\n"= ;, "\r");<br> description =3D description.replaceAll("\\r{2,}&quo= t;, "<br/>");<br> }<br> ...<br> <br> Regards,<br> Benjamin<br> <br> <br> On 19.03.2009 15:47 Zanzico Gioele wrote: <o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D1 color=3Dblack face=3DVerdana><span lang= =3DEN-GB style=3D'font-size:8.0pt;font-family:Verdana'><!--[if gte mso 9]><xml> <u1:shapedefaults u2:ext=3D"edit" spidmax=3D"1026"/> </xml><![endif]--><!--[if gte mso 9]><xml> <u3:shapelayout u4:ext=3D"edit"> <u3:idmap u4:ext=3D"edit" data=3D"1"/> </u3:shapelayout> </xml><![endif]-->Hi, <u5:p></u5:p></span></font><o:p></o:p></p> <p class=3DMsoNormal><font size=3D1 color=3Dblack face=3DVerdana><span lang= =3DEN-GB style=3D'font-size:8.0pt;font-family:Verdana'>doing a search implementing t= he API of Jahia (Search.java) it works and the number of results seems correct.<u5= :p></u5:p></span></font><o:p></o:p></p> <p class=3DMsoNormal><font size=3D1 color=3Dblack face=3DVerdana><span lang= =3DEN-GB style=3D'font-size:8.0pt;font-family:Verdana'>Doing the same search (the sa= me search key) with the standard .jsp of Jahia (searchresults.jsp) <u5:p></u5:= p></span></font><o:p></o:p></p> <p class=3DMsoNormal><font size=3D1 color=3Dblack face=3DVerdana><span lang= =3DEN-GB style=3D'font-size:8.0pt;font-family:Verdana'>in effect we get the same num= ber of record, but the teaser is different.<u5:p></u5:p></span></font><o:p></o:p><= /p> <p class=3DMsoNormal><font size=3D1 color=3Dblack face=3DVerdana><span lang= =3DEN-GB style=3D'font-size:8.0pt;font-family:Verdana'>In our “custom” s= earch they teaser seems to keep only a little bit of the description, <u5:p></u5:= p></span></font><o:p></o:p></p> <p class=3DMsoNormal><font size=3D1 color=3Dblack face=3DVerdana><span lang= =3DEN-GB style=3D'font-size:8.0pt;font-family:Verdana'>with the “standard̶= 1; search it is more long, more or less with all the content of the result.<u5= :p></u5:p></span></font><o:p></o:p></p> <p class=3DMsoNormal><font size=3D1 color=3Dblack face=3DVerdana><span lang= =3DEN-GB style=3D'font-size:8.0pt;font-family:Verdana'><u5:p> </u5:p></span></f= ont><o:p></o:p></p> <p class=3DMsoNormal><font size=3D1 color=3Dblack face=3DVerdana><span lang= =3DEN-GB style=3D'font-size:8.0pt;font-family:Verdana'>Does it is necessary to change something on our code to get the same teaser<u5:p></u5:p></span></font><o:p= ></o:p></p> <p class=3DMsoNormal><font size=3D1 color=3Dblack face=3DVerdana><span lang= =3DEN-GB style=3D'font-size:8.0pt;font-family:Verdana'>or using the API this is the correct result ?<u5:p></u5:p></span></font><o:p></o:p></p> <p class=3DMsoNormal><font size=3D1 color=3Dblack face=3DVerdana><span lang= =3DEN-GB style=3D'font-size:8.0pt;font-family:Verdana'><u5:p> </u5:p></span></f= ont><o:p></o:p></p> <p class=3DMsoNormal><font size=3D1 color=3Dblack face=3DVerdana><span lang= =3DEN-GB style=3D'font-size:8.0pt;font-family:Verdana'>tks<u5:p></u5:p></span></font= ><o:p></o:p></p> <p class=3DMsoNormal><font size=3D1 color=3Dblack face=3DVerdana><span lang= =3DEN-GB style=3D'font-size:8.0pt;font-family:Verdana'>ciao<u5:p></u5:p></span></fon= t><o:p></o:p></p> <p class=3DMsoNormal><font size=3D1 color=3Dblack face=3DVerdana><span lang= =3DEN-GB style=3D'font-size:8.0pt;font-family:Verdana'>gioele<u5:p></u5:p></span></f= ont><o:p></o:p></p> <p class=3DMsoNormal><font size=3D1 color=3Dblack face=3DVerdana><span lang= =3DEN-GB style=3D'font-size:8.0pt;font-family:Verdana'><u5:p> </u5:p></span></f= ont><o:p></o:p></p> <p class=3DMsoNormal><b><font size=3D1 color=3Dblack face=3DArial><span lan= g=3DEN-GB style=3D'font-size:8.0pt;font-family:Arial;font-weight:bold'>Zanzico Gioele= </span></font></b><span lang=3DEN-GB><br> </span><b><font size=3D1 face=3DArial><span lang=3DEN-GB style=3D'font-size= :8.0pt; font-family:Arial;font-weight:bold'>Senior Web Analyst<u5:p></u5:p></span><= /font></b><o:p></o:p></p> <p class=3DMsoNormal><font size=3D1 color=3Dblack face=3DArial><span lang= =3DEN-GB style=3D'font-size:8.0pt;font-family:Arial'>Vitec Group - Imaging & Sta= ging<br> Tel +39 0424 555 507<br> </span></font><font size=3D1 face=3DArial><span style=3D'font-size:7.5pt;fo= nt-family: Arial'><a href=3D"blocked::http://www.manfrotto.com/" title=3D"blocked::http://www.manfrotto.com/ http://www.manfrotto.c= om/" moz-do-not-send=3Dtrue></span></font></b></span><b><font color=3Dred><span = style=3D'color:red;font-weight: bold'>MailScanner has detected a possible fraud attempt from "www.manfrotto.com" claiming to be <span title=3D"blocked::http://www.manfrotto.com/ http://www.manfrotto.c= om/">www.vitecgroup.it</a><br> </span></font><font size=3D6 color=3Dgreen face=3DWebdings><span lang=3DEN-= US style=3D'font-size:22.0pt;font-family:Webdings;color:green'>P </span></font= ><b><font size=3D1 color=3Dgreen face=3DArial><span lang=3DEN-US style=3D'font-size:8= .0pt; font-family:Arial;color:green;font-weight:bold'>Respect the environment: do= n’t print this e-mail, if not necessary.</span></font></b><font size=3D1 face= =3DArial><span lang=3DEN-US style=3D'font-size:8.0pt;font-family:Arial'> </span></font><o:= p></o:p></p> <u5:p></u5:p> <p class=3DMsoNormal><font size=3D3 color=3Dblack face=3D"Times New Roman">= <span lang=3DEN-GB style=3D'font-size:12.0pt'><u5:p> </u5:p></span><o:p></o:= p></font></p> <pre wrap=3D""><font size=3D2 color=3Dblack face=3D"Courier New"><span style=3D'font-size:10.0pt'><o:p> </o:p></span></font></pre><pre style=3D'text-align:center'><font size=3D2 color=3Dblack face=3D"Courier Ne= w"><span style=3D'font-size:10.0pt'> <hr size=3D4 width=3D"90%" align=3Dcenter> </span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New">= <span style=3D'font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span style=3D'font-size:10.0pt= '>_______________________________________________<o:p></o:p></span></font><= /pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span style=3D'font-size:10.0pt= '>dev_list mailing list<o:p></o:p></span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span style=3D'font-size:10.0pt= '><a href=3D"mailto:[email protected]">[email protected]</a><o:p></o:p></span>= </font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span style=3D'font-size:10.0pt= '><a href=3D"http://lists.jahia.org/cgi-bin/mailman/listinfo/dev_list">http://li= sts.jahia.org/cgi-bin/mailman/listinfo/dev_list</a><o:p></o:p></span></font= ></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span style=3D'font-size:10.0pt= '>=A0 <o:p></o:p></span></font></pre></div> </body> </html> ------_=_NextPart_001_01C9A8AB.C04D7128-- --===============0020501997== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dev_list mailing list [email protected] http://lists.jahia.org/cgi-bin/mailman/listinfo/dev_list --===============0020501997==--