Jahia Dev Forum > Getting case sensitive...

0 (0 Good)
0 (0 Bad)

Getting case sensitive search results

by  abhinitb »  2013/04/20 04:46

Hi,

For our site, we have extended the out of the box search functionality by Jahia, but we are getting different results for the same word entered in different cases.

For example if we enter 'legacy' we get 4 results, if we enter 'Legacy', we get 5, and on entering 'LEGACY' we get, say, 8 results.

Ideally, it should be giving same results for the same word, entered in any case.

Can anyone provide any pointers on this.

Thanks in advance.

 

Best Regards,

Abhinit

  • Getting case sensitive search results
    2013/04/20 04:46

    abhinitb <p> Hi,</p> <p> For our site, we have extended the out of the box search functionality by Jahia, but we are getting different results for the same word entered in different cases.</p> <p> For example if we enter &#39;legacy&#39; we get 4 results, if we enter &#39;Legacy&#39;, we get 5, and on entering &#39;LEGACY&#39; we get, say, 8 results.</p> <p> Ideally, it should be giving same results for the same word, entered in any case.</p> <p> Can anyone provide any pointers on this.</p> <p> Thanks in advance.</p> <p> &nbsp;</p> <p> Best Regards,</p> <p> Abhinit</p>

  • Number of messages  28
    Registration date Apr 20, 2013
    0 (0 Good)
    0 (0 Bad)

    Re: Getting case sensitive search results

    by  pap@commaro.com »  2013/05/05 18:33

    Hello Abhinit,

    it depends on the search query you use. Normally when doing fulltext queries (in XPATH: jcr:contains) the query is case insensitive, but e.g. querying for a tag is case sensitive, as we look up the tag without query directly from the repository. Using jcr:like on the nodename (e.g. filename) is also case sensitive.

    Can you send more details or already see yourself from the additional results with "Legacy" and "LEGACY" why they are there and not there with "legacy" ?

    Regards,
    Benjamin

    Benjamin Papez (pap@commaro.com)

    Number of messages  220
    Registration date
    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