<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi Rafael,</p>
<p>you can use the local query parameters, specifying the query
modifier, i.e., {!q.op=AND}%(query). You might also consider using
the modifier to add quotes for phrase search. This might only
cause problems if someone enters quotes in his query.<br>
</p>
<p><br>
</p>
<p>Best, Daniel.<br>
</p>
<p><br>
</p>
<br>
<div class="moz-cite-prefix">Am 20.02.2017 um 09:22 schrieb Cano
Parra, Rafael:<br>
</div>
<blockquote
cite="mid:VI1PR04MB10072921E9FAB8E26E3EA6D7CF5E0@VI1PR04MB1007.eurprd04.prod.outlook.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 14 (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:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Texto de globo Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
mso-fareast-language:EN-US;}
span.TextodegloboCar
{mso-style-name:"Texto de globo Car";
mso-style-priority:99;
mso-style-link:"Texto de globo";
font-family:"Tahoma","sans-serif";}
span.EstiloCorreo19
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
{page:WordSection1;}
--></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="WordSection1">
<p class="MsoNormal">Dear all,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am configuring the JSP search
functionality with a custom formatter.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I followed the documentation and the
example formatter, with good results in pagination, sorting,
and search content.<o:p></o:p></p>
<p class="MsoNormal">However, I can not find how to implement a
type search with three options: search any word (OR option, it
is the default behavior), search all words (AND option), and
search a literal phrase (words between quotations).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I found that SOLR has an option to
configure AND search with local parameters (i.e., using
“{¡q.op=AND}” attached before the search query), but I can not
find the way to implement this with the JSP search formatter
configuration, or by code in the formatter.<o:p></o:p></p>
<p class="MsoNormal">Also, I can not find the way to cover the
search query with quotations when the “search a literal
phrase” option is selected, without requiring the user to
explicitly write the quotations in the search query.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Can anyone help me, please?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Best regards,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span style="mso-fareast-language:ES">Rafael
Cano Parra<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="mso-fareast-language:ES">Servicio
de Informática<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:ES">Tel.:
947 52 20 13 – Ext.: 34 941<o:p></o:p></span></p>
<p class="MsoNormal"><a moz-do-not-send="true"
href="mailto:rafaelcano@saludcastillayleon.es"><span
style="mso-fareast-language:ES">rafaelcano@saludcastillayleon.es</span></a><span
style="mso-fareast-language:ES"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:ES"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span
style="color:#1F497D;mso-fareast-language:ES">Hospital
Santos Reyes<o:p></o:p></span></b></p>
<p class="MsoNormal"><span
style="color:#1F497D;mso-fareast-language:ES">Avda. Ruperta
Baraya, 6<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:#1F497D;mso-fareast-language:ES">09400 Aranda
de Duero (Burgos)<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:#1F497D;mso-fareast-language:ES">Tel.: 947 52
20 00 – Ext.: 34 600<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:#1F497D;mso-fareast-language:ES">Fax: 947 52 20
12<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:ES"><o:p> </o:p></span></p>
<p class="MsoNormal"><a moz-do-not-send="true"
href="https://www.saludcastillayleon.es/HSReyesAranda/"><span
style="mso-fareast-language:ES;text-decoration:none"><img
id="Imagen_x0020_1"
src="cid:part2.C3B49DC4.83B2453E@alkacon.com"
alt="logo_hsry" border="0" height="32" width="44"></span></a><span
style="mso-fareast-language:ES">
</span><a moz-do-not-send="true"
href="https://www.saludcastillayleon.es/"><span
style="mso-fareast-language:ES;text-decoration:none"><img
id="Imagen_x0020_2"
src="cid:part4.92E96E82.A9B9EC87@alkacon.com"
alt="logo_sacyl" border="0" height="32" width="63"></span></a><span
style="mso-fareast-language:ES"> </span><a
moz-do-not-send="true" href="https://www.jcyl.es/"><span
style="mso-fareast-language:ES;text-decoration:none"><img
id="Imagen_x0020_3"
src="cid:part6.B281F557.9909D889@alkacon.com"
alt="logo_jcyl" border="0" height="32" width="53"></span></a><span
style="mso-fareast-language:ES"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
--- AVISO SOBRE CONFIDENCIALIDAD. La legislación española ampara
el secreto de las comunicaciones. Este correo electrónico y sus
anexos son estrictamente confidenciales. Si Vd. no es el
destinatario del mismo, por favor, notifíquenoslo inmediatamente y
destruya el original. No deberá copiar este mensaje ni sus anexos
o usarlo para propósito alguno, ni divulgar su contenido a ninguna
persona.
---- ----
--- WARNING ABOUT CONFIDENTIALITY. Spanish law guarantees privacy
in electronic communications. This message and its attachments are
confidential. If you are not the intended recipient please, notify
us immediately and destroy the original. You should not copy this
message or use it for any purpose, nor disclose its content to any
other person.
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
<a class="moz-txt-link-freetext" href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Kind Regards,
Daniel.
-------------------
Daniel Seidel
Alkacon Software GmbH & Co. KG - The OpenCms Experts
<a class="moz-txt-link-freetext" href="http://www.alkacon.com">http://www.alkacon.com</a> - <a class="moz-txt-link-freetext" href="http://www.opencms.org">http://www.opencms.org</a> </pre>
</body>
</html>