Jahia Template Forum > Jahia Query Tag

0 (0 Good)
0 (0 Bad)

Jahia Query Tag

by  Flynn »  2011/06/07 20:09

Hello,

I try to make a query to search a word in the title [b:1zg9ls5g]AND[/b:1zg9ls5g] in the content.

One fullTextSearch works :
lt;query:fullTextSearch propertyName=
  • Jahia Query Tag
    2011/06/07 20:09

    Flynn Hello,<br/><br/>I try to make a query to search a word in the title [b:1zg9ls5g]AND[/b:1zg9ls5g] in the content.<br/><br/>One fullTextSearch works :<br/>lt;query:fullTextSearch propertyName=

  • Number of messages  32
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Jahia Query Tag

    by  darrenc »  2011/06/07 20:09

    Try using a lt;query:and
  • Re: Jahia Query Tag
    2011/06/07 20:09

    darrenc Try using a lt;query:and

  • Number of messages  13
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Jahia Query Tag

    by  Flynn »  2011/06/07 20:09

    Unfortunately it didn't seems to work, the query returns nothing... :(
  • Re: Jahia Query Tag
    2011/06/07 20:09

    Flynn Unfortunately it didn't seems to work, the query returns nothing... <!-- s:( --><img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad" /><!-- s:( -->

  • Number of messages  32
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Jahia Query Tag

    by  darrenc »  2011/06/07 20:09

    Here's a working example from our site.

    The quot;AND
  • Re: Jahia Query Tag
    2011/06/07 20:09

    darrenc Here's a working example from our site.<br/><br/>The quot;AND

  • Number of messages  13
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Jahia Query Tag

    by  sdenef »  2011/06/07 20:09

    Perhaps you don't need a lt;query:and
  • Re: Jahia Query Tag
    2011/06/07 20:09

    sdenef Perhaps you don't need a lt;query:and

  • Number of messages  30
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Jahia Query Tag

    by  Flynn »  2011/06/07 20:09

    Don't work with these changes...

    Here is my code :

    [code:3n3z30la]lt;query
  • Re: Jahia Query Tag
    2011/06/07 20:09

    Flynn Don't work with these changes...<br/><br/>Here is my code :<br/><br/>[code:3n3z30la]lt;query

  • Number of messages  32
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Jahia Query Tag

    by  darrenc »  2011/06/07 20:09

    Strange that it's not working for you - the example I posted is copied from a working production site so I know it's correct.

    The suggestion by sdenef also looks good - I've used the lt;query:or
  • Re: Jahia Query Tag
    2011/06/07 20:09

    darrenc Strange that it's not working for you - the example I posted is copied from a working production site so I know it's correct.<br/><br/>The suggestion by sdenef also looks good - I've used the lt;query:or

  • Number of messages  13
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Jahia Query Tag

    by  sdenef »  2011/06/07 20:09

    OK. So your query can only retrieve containers where param.rech is in titre AND chapo AND contenu.


    You can also try, with the same param.rech parameter :

    Search only quot;titre
  • Re: Jahia Query Tag
    2011/06/07 20:09

    sdenef OK. So your query can only retrieve containers where param.rech is in titre AND chapo AND contenu.<br/><br/><br/>You can also try, with the same param.rech parameter :<br/><br/>Search only quot;titre

  • Number of messages  30
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Jahia Query Tag

    by  Flynn »  2011/06/07 20:09

    The last reply of darrenc works well. :P

    Thanks guys for your precious help.
  • Re: Jahia Query Tag
    2011/06/07 20:09

    Flynn The last reply of darrenc works well. <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P --> <br/><br/>Thanks guys for your precious help.

  • Number of messages  32
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Jahia Query Tag

    by  sdenef »  2011/06/07 20:09

    If you can : test with several fulltextsearch and, if necessary, open a JIRA.
    ( if it's a bug perhaps someone else would be happy if it's fixed )
  • Re: Jahia Query Tag
    2011/06/07 20:09

    sdenef If you can : test with several fulltextsearch and, if necessary, open a JIRA.<br/>( if it's a bug perhaps someone else would be happy if it's fixed )

  • Number of messages  30
    Registration date Jun 7, 2011
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page