Re: R: (no subject)

Benjamin Papez <[email protected]> Thu, 19 Mar 2009 17:03:54 +0100
Newsgroups gmane.comp.cms.jahia.devel
Message-ID <[email protected]>
--===============0047712013==
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Gioele,<br>
<br>
it is in the compass-core-1.0.1.jar in the WEB-INF\lib<br>
<br>
Regards,<br>
Benjamin<br>
<br>
On 19.03.2009 16:59 Zanzico Gioele wrote:
<blockquote
 cite="mid:[email protected]"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator" content="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="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
  <div class="Section1">
  <p class="MsoNormal"><font color="black" face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana;" lang="EN-GB">Hi Benjamin,<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana;" lang="EN-GB">sorry I
forgot to mention what
version of Jahia.<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana;" lang="EN-GB">I confirm
that I&#8217;m working on
JAHIA 5.<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana;" lang="EN-GB"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana;" lang="EN-GB">Our jahia
version is jahia5.0.4_r24398.jar<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana;" lang="EN-GB">But I don&#8217;t
find on our
installationa the CompassHighlighter class.<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana;" lang="EN-GB"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana;" lang="EN-GB">And it is
not present also in WEB-INF
classes.<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana;" lang="EN-GB"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana;" lang="EN-GB">tks for
your quick answer<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana;" lang="EN-GB">Ciao<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana;" lang="EN-GB">gioele<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana;" lang="EN-GB"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font color="blue" face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana; color: blue;" lang="EN-GB"><o:p>&nbsp;</o:p></span></font></p>
  <div>
  <p class="MsoNormal" style=""><b><font color="black" face="Arial"
 size="1"><span
 style="font-size: 8pt; font-family: Arial; font-weight: bold;"
 lang="EN-GB">Zanzico Gioele</span></font></b><span lang="EN-GB"><br>
  </span><b><font face="Arial" size="1"><span
 style="font-size: 8pt; font-family: Arial; font-weight: bold;"
 lang="EN-GB">Senior Web Analyst<o:p></o:p></span></font></b></p>
  <p class="MsoNormal" style=""><font color="black" face="Arial"
 size="1"><span style="font-size: 8pt; font-family: Arial;" lang="EN-GB">Vitec
Group - Imaging &amp; Staging<br>
Tel&nbsp;&nbsp; +39 0424 555 507<br>
  </span></font><font face="Arial" size="1"><span
 style="font-size: 8pt; font-family: Arial;" lang="EN-US"></span><a
 moz-do-not-send="true" href="blocked::http://www.manfrotto.com/"
 title="blocked::http://www.manfrotto.com/
http://www.manfrotto.com/"><font
 color="red"><b>MailScanner has detected a possible fraud attempt from
"www.manfrotto.com" claiming to be</b></font> <span
 title="blocked::http://www.manfrotto.com/
http://www.manfrotto.com/">www.vitecgroup.it</span></a><br>
  </font><font color="green" face="Webdings" size="6"><span
 style="font-size: 22pt; font-family: Webdings; color: green;"
 lang="EN-US">P </span></font><b><font color="green" face="Arial"
 size="1"><span
 style="font-size: 8pt; font-family: Arial; color: green; font-weight: bold;"
 lang="EN-US">Respect the environment:
don&#8217;t print this e-mail, if not necessary.</span></font></b><font
 face="Arial" size="1"><span style="font-size: 8pt; font-family: Arial;"
 lang="EN-US"> </span></font><span lang="EN-GB"><o:p></o:p></span></p>
  </div>
  <div>
  <div class="MsoNormal" style="text-align: center;" align="center"><font
 color="black" face="Times New Roman" size="3"><span
 style="font-size: 12pt; color: windowtext;">
  <hr tabindex="-1" align="center" size="2" width="100%"></span></font></div>
  <p class="MsoNormal"><b><font color="black" face="Tahoma" size="2"><span
 style="font-size: 10pt; font-family: Tahoma; color: windowtext; font-weight: bold;">Da:</span></font></b><font
 color="black" face="Tahoma" size="2"><span
 style="font-size: 10pt; font-family: Tahoma; color: windowtext;">
<a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>
[<a class="moz-txt-link-freetext" href="mailto:[email protected]">mailto:[email protected]</a>] <b><span style="font-weight: bold;">Per
conto
di </span></b>Benjamin Papez<br>
  <b><span style="font-weight: bold;">Inviato:</span></b> gioved&igrave; 19
marzo 2009
16.30<br>
  <b><span style="font-weight: bold;">A:</span></b> Here you can
discuss and
comment current and future developments of Jahia<br>
  <b><span style="font-weight: bold;">Oggetto:</span></b> Re:
[dev_list] (no
subject)</span></font><font color="black"><span
 style="color: windowtext;"><o:p></o:p></span></font></p>
  </div>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;">Ciao Gioele,<br>
  <br>
please always mention which Jahia version you are using, since Jahia 6
is out
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 just
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 = thisHit.getTeaser();<br>
CompassHighlighter highlighter = thisHit.highlighter();<br>
if ( highlighter != null ){<br>
&nbsp;&nbsp;&nbsp; description = highlighter.fragmentsWithSeparator(<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
JahiaSearchConstant.CONTENT_FULLTEXT_SEARCH_FIELD);<br>
&nbsp;&nbsp;&nbsp; description = description.replaceAll("\\r\\n",
"\r");<br>
&nbsp;&nbsp;&nbsp; description = description.replaceAll("\\r{2,}",
"&lt;br/&gt;");<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="MsoNormal"><font color="black" face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana;" lang="EN-GB"><!--[if gte mso 9]><xml>
 <u1:shapedefaults u2:ext="edit" spidmax="1026"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <u3:shapelayout u4:ext="edit">
  <u3:idmap u4:ext="edit" data="1"/>
 </u3:shapelayout>
</xml><![endif]-->Hi,
  <u5:p></u5:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana;" lang="EN-GB">doing a
search implementing the 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="MsoNormal"><font color="black" face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana;" lang="EN-GB">Doing the
same search (the same
search key) with the standard .jsp of Jahia (searchresults.jsp) <u5:p></u5:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana;" lang="EN-GB">in effect
we get the same number of
record, but the teaser is different.<u5:p></u5:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana;" lang="EN-GB">In our
&#8220;custom&#8221; search
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="MsoNormal"><font color="black" face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana;" lang="EN-GB">with the
&#8220;standard&#8221;
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="MsoNormal"><font color="black" face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana;" lang="EN-GB"><u5:p>&nbsp;</u5:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana;" lang="EN-GB">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="MsoNormal"><font color="black" face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana;" lang="EN-GB">or using
the API this is the
correct result ?<u5:p></u5:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana;" lang="EN-GB"><u5:p>&nbsp;</u5:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana;" lang="EN-GB">tks<u5:p></u5:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana;" lang="EN-GB">ciao<u5:p></u5:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana;" lang="EN-GB">gioele<u5:p></u5:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana;" lang="EN-GB"><u5:p>&nbsp;</u5:p></span></font><o:p></o:p></p>
  <p class="MsoNormal"><b><font color="black" face="Arial" size="1"><span
 style="font-size: 8pt; font-family: Arial; font-weight: bold;"
 lang="EN-GB">Zanzico Gioele</span></font></b><span lang="EN-GB"><br>
  </span><b><font face="Arial" size="1"><span
 style="font-size: 8pt; font-family: Arial; font-weight: bold;"
 lang="EN-GB">Senior Web Analyst<u5:p></u5:p></span></font></b><o:p></o:p></p>
  <p class="MsoNormal"><font color="black" face="Arial" size="1"><span
 style="font-size: 8pt; font-family: Arial;" lang="EN-GB">Vitec Group -
Imaging &amp; Staging<br>
Tel&nbsp;&nbsp; +39 0424 555 507<br>
  </span></font><font face="Arial" size="1"><span
 style="font-size: 7.5pt; font-family: Arial;"></span></font><a
 href="blocked::http://www.manfrotto.com/"
 title="blocked::http://www.manfrotto.com/
http://www.manfrotto.com/"
 moz-do-not-send="true"><b><font color="red"><span
 style="color: red; font-weight: bold;">MailScanner has detected a
possible fraud attempt from
"www.manfrotto.com" claiming to be <span
 title="blocked::http://www.manfrotto.com/
http://www.manfrotto.com/">www.vitecgroup.it</span></span></font></b></a><b><font
 color="red"><br>
  </font><font color="green" face="Webdings" size="6"><span
 style="font-size: 22pt; font-family: Webdings; color: green;"
 lang="EN-US">P </span></font><b><font color="green" face="Arial"
 size="1"><span
 style="font-size: 8pt; font-family: Arial; color: green; font-weight: bold;"
 lang="EN-US">Respect the environment: don&#8217;t
print this e-mail, if not necessary.</span></font></b><font face="Arial"
 size="1"><span style="font-size: 8pt; font-family: Arial;" lang="EN-US">
  </span></font><o:p></o:p></b></p>
  <u5:p></u5:p>
  <p class="MsoNormal"><b><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;" lang="EN-GB"><u5:p>&nbsp;</u5:p></span><o:p></o:p></font></b></p>
  <pre wrap=""><b><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p>&nbsp;</o:p></span></font></b></pre>
  <pre style="text-align: center;"><b><font color="black"
 face="Courier New" size="2"><span style="font-size: 10pt;">

<hr align="center" size="4" width="90%">

</span></font></b></pre>
  <pre><b><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p>&nbsp;</o:p></span></font></b></pre>
  <pre><b><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">_______________________________________________<o:p></o:p></span></font></b></pre>
  <pre><b><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">dev_list mailing list<o:p></o:p></span></font></b></pre>
  <pre><b><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><a moz-do-not-send="true"
 href="mailto:[email protected]">[email protected]</a><o:p></o:p></span></font></b></pre>
  <pre><b><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><a moz-do-not-send="true"
 href="http://lists.jahia.org/cgi-bin/mailman/listinfo/dev_list">http://lists.jahia.org/cgi-bin/mailman/listinfo/dev_list</a><o:p></o:p></span></font></b></pre>
  <pre><b><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">&nbsp; <o:p></o:p></span></font></b></pre>
  </div>
  <pre wrap=""><b>
</b><hr size="4" width="90%"><b>
_______________________________________________
dev_list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>
<a class="moz-txt-link-freetext" href="http://lists.jahia.org/cgi-bin/mailman/listinfo/dev_list">http://lists.jahia.org/cgi-bin/mailman/listinfo/dev_list</a>
</b></pre>
</blockquote>
</body>
</html>

--===============0047712013==
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

--===============0047712013==--