(no subject)

"Zanzico Gioele" <[email protected]> Thu, 19 Mar 2009 15:47:20 +0100
Newsgroups gmane.comp.cms.jahia.devel
Message-ID <[email protected]>
This is a multi-part message in MIME format.

------_=_NextPart_001_01C9A8A1.9B8B9A22
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_002_01C9A8A1.9B8B9A22"


------_=_NextPart_002_01C9A8A1.9B8B9A22
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

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 description,=20

with the "standard" search it is more long, more or less with all the
content 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
www.vitecgroup.it <blocked::http://www.manfrotto.com/>=20
P Respect the environment: don't print this e-mail, if not necessary.=20

=20


------_=_NextPart_002_01C9A8A1.9B8B9A22
Content-Type: text/html;
	charset="us-ascii"
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=3D"Content-Type" CONTENT=3D"text/html; charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @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";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.StileMessaggioDiPostaElettronica17
	{mso-style-type:personal-compose;
	font-family:Verdana;
	color:windowtext;
	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 lang=3DIT link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D1 face=3DVerdana><span lang=3DEN-GB style=
=3D'font-size:
8.0pt;font-family:Verdana'>Hi, <o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DVerdana><span lang=3DEN-GB style=
=3D'font-size:
8.0pt;font-family:Verdana'>doing a search implementing the API of Jahia (</=
span></font><font
size=3D1 color=3Dblack face=3DVerdana><span lang=3DEN-GB style=3D'font-size=
:8.0pt;
font-family:Verdana;color:black'>Search.java)</span></font><font size=3D1
face=3DVerdana><span lang=3DEN-GB style=3D'font-size:8.0pt;font-family:Verd=
ana'> it works
and the number of results seems correct.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DVerdana><span lang=3DEN-GB style=
=3D'font-size:
8.0pt;font-family:Verdana'>Doing the same search (the same search key) with=
 the
standard .jsp of Jahia (searchresults.jsp) <o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DVerdana><span lang=3DEN-GB style=
=3D'font-size:
8.0pt;font-family:Verdana'>in effect we get the same number of record, but =
the teaser
is different.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DVerdana><span lang=3DEN-GB style=
=3D'font-size:
8.0pt;font-family:Verdana'>In our &#8220;custom&#8221; search they teaser s=
eems
to keep only a little bit of the description, <o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DVerdana><span lang=3DEN-GB style=
=3D'font-size:
8.0pt;font-family:Verdana'>with the &#8220;standard&#8221; search it is more
long, more or less with all the content of the result.<o:p></o:p></span></f=
ont></p>

<p class=3DMsoNormal><font size=3D1 face=3DVerdana><span lang=3DEN-GB style=
=3D'font-size:
8.0pt;font-family:Verdana'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 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<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DVerdana><span lang=3DEN-GB style=
=3D'font-size:
8.0pt;font-family:Verdana'>or using the API this is the correct result ?<o:=
p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DVerdana><span lang=3DEN-GB style=
=3D'font-size:
8.0pt;font-family:Verdana'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DVerdana><span lang=3DEN-GB style=
=3D'font-size:
8.0pt;font-family:Verdana'>tks<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 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 face=3DVerdana><span lang=3DEN-GB style=
=3D'font-size:
8.0pt;font-family:Verdana'>gioele<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DVerdana><span lang=3DEN-GB style=
=3D'font-size:
8.0pt;font-family:Verdana'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt=
:auto'><b><font
size=3D1 face=3DArial><span lang=3DEN-GB style=3D'font-size:8.0pt;font-fami=
ly: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 face=3DArial><span lang=3DEN-GB style=3D'font-size:8.0pt;font-fami=
ly:Arial'>Vitec
Group - Imaging &amp; Staging<br>
Tel&nbsp;&nbsp; +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/&#10;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/&#10;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&#8217;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>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span lang=3DE=
N-GB
style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>

------_=_NextPart_002_01C9A8A1.9B8B9A22--

------_=_NextPart_001_01C9A8A1.9B8B9A22
Content-Type: application/octet-stream;
	name="Search.java"
Content-Transfer-Encoding: base64
Content-Description: Search.java
Content-Disposition: attachment;
	filename="Search.java"

cGFja2FnZSBjb20ubWFuZnJvdHRvLndlYi5zZWFyY2g7DQoNCmltcG9ydCBq
YXZhLnV0aWwuQXJyYXlMaXN0Ow0KaW1wb3J0IGphdmEudXRpbC5IYXNodGFi
bGU7DQppbXBvcnQgamF2YS51dGlsLkl0ZXJhdG9yOw0KaW1wb3J0IGphdmEu
dXRpbC5MaXN0Ow0KaW1wb3J0IGphdmEudXRpbC5WZWN0b3I7DQoNCmltcG9y
dCBvcmcuYXBhY2hlLmNvbW1vbnMubGFuZy5TdHJpbmdFc2NhcGVVdGlsczsN
CmltcG9ydCBvcmcuYXBhY2hlLmxvZzRqLkxvZ2dlcjsNCmltcG9ydCBvcmcu
amFoaWEuYmluLkphaGlhOw0KaW1wb3J0IG9yZy5qYWhpYS5jb250ZW50LkNv
bnRlbnREZWZpbml0aW9uOw0KaW1wb3J0IG9yZy5qYWhpYS5jb250ZW50Lkph
aGlhT2JqZWN0Ow0KaW1wb3J0IG9yZy5qYWhpYS5jb250ZW50Lk9iamVjdEtl
eTsNCmltcG9ydCBvcmcuamFoaWEuZGF0YS5jb250YWluZXJzLkphaGlhQ29u
dGFpbmVyOw0KaW1wb3J0IG9yZy5qYWhpYS5kYXRhLmNvbnRhaW5lcnMuSmFo
aWFDb250YWluZXJEZWZpbml0aW9uOw0KaW1wb3J0IG9yZy5qYWhpYS5kYXRh
LmNvbnRhaW5lcnMuSmFoaWFDb250ZW50Q29udGFpbmVyRmFjYWRlOw0KaW1w
b3J0IG9yZy5qYWhpYS5kYXRhLnNlYXJjaC5KYWhpYVNlYXJjaEhpdDsNCmlt
cG9ydCBvcmcuamFoaWEuZGF0YS5zZWFyY2guSmFoaWFTZWFyY2hSZXN1bHQ7
DQppbXBvcnQgb3JnLmphaGlhLmV4Y2VwdGlvbnMuSmFoaWFFeGNlcHRpb247
DQppbXBvcnQgb3JnLmphaGlhLnBhcmFtcy5QYXJhbUJlYW47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ZSk7DQoJCX0N
CgkJDQoJCQ0KCQlpZiAoc2VhcmNoUmVzdWx0c0JlYW4uc2l6ZSgpPT0wKSB7
DQoJCQlsb2cuZGVidWcoaWRtICsgIiBTRVQgc2VhcmNoUmVzdWx0c0JlYW4g
PSBudWxsIik7DQoJCQlzZWFyY2hSZXN1bHRzQmVhbiA9IG51bGw7DQoJCX0N
CgkJDQoJCXJldHVybiBzZWFyY2hSZXN1bHRzQmVhbjsNCiAgICAgICAgDQoJ
fQ0KfQ0K

------_=_NextPart_001_01C9A8A1.9B8B9A22
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

------_=_NextPart_001_01C9A8A1.9B8B9A22--