Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • ysee 38 posts 36 karma points
    Jan 04, 2010 @ 17:40
    ysee
    0

    searchFields

    searchFields="@nodename,aaa,bbb"

         previewFields=""
        searchBoxLocation="BOTTOM"
        previewType="BEGINNIG"
        resultsPerPage="10"
        previewChars="100"
        showPageRange="1"
        showOrdinals="0"
        showScores="0"
        showStats="0" Alias="XSLTsearch" runat="server"></

     

    Why only search @ nodename

    Does not search aaa,bbb?

  • Dirk De Grave 4537 posts 6006 karma points MVP 3x admin c-trib
    Jan 04, 2010 @ 17:43
    Dirk De Grave
    0

    As far as I can tell, your syntax looks fine according to the docs? Are you sure about the casing? your search fields are case sensitive!

     

    Hope this helps.

    Regards,

    /Dirk

  • ysee 38 posts 36 karma points
    Jan 04, 2010 @ 17:45
    ysee
    0

    and

    URL  search.aspx?search=阿

    Chinese characters are garbled

     

    ��

  • ysee 38 posts 36 karma points
    Jan 04, 2010 @ 17:48
    ysee
    0

    According to the document

    Only the first valid searchFields

     

    xslt decomposition of the string, where to find?

     

     

  • Douglas Robar 3570 posts 4671 karma points MVP ∞ admin c-trib
    Jan 04, 2010 @ 19:21
    Douglas Robar
    0

    I'm not quite sure what the problem is that you're tring to describe.

    Can you share a link to your search page so that I can see the behavior you're getting?

    cheers,
    doug.

  • ysee 38 posts 36 karma points
    Jan 05, 2010 @ 08:38
    ysee
    0

    If

    contains(ps:uppercase(umbraco.library:StripHtml(string(.))) = "AAAAAAAA"

    concat($searchUpper, ' ') = “A”

     

     

     

    Test Results

    <xsl:value-of select="contains(ps:uppercase(umbraco.library:StripHtml(string(.))),concat($searchUpper, ' ')) "/>

    RETRUN FALSE

    <xsl:value-of select="contains("AAAAAA",concat($searchUpper, ' ')) "/>

    RETRUN FALSE

    <xsl:value-of select="contains(ps:uppercase(umbraco.library:StripHtml(string(.))),"A") "/>

    RETRUN TRUE

     

     

    Suspected to be encoded

    How to solve the?

    Check out this issue, but did not solve the searchfields

     


     

  • ysee 38 posts 36 karma points
    Jan 05, 2010 @ 10:08
    ysee
    0

    <xsl:value-of select="contains(ps:uppercase(umbraco.library:StripHtml(string(.))),concat($searchUpper, ' ')) "/>

    RETRUN FALSE

    <xsl:value-of select="contains(ps:uppercase(umbraco.library:StripHtml(string(.))),$searchUpper) "/>

    RETRUN TRUE

  • ysee 38 posts 36 karma points
    Jan 05, 2010 @ 10:53
    ysee
    0

    <xsl:value-of select="ps:UrlEncode(ps:escapeSearchTerms(string(umbraco.library:RequestQueryString('search'))))" />

     

    public string UrlEncode(string str)
            {
                try
                {
                   
                    return System.Web.HttpUtility.UrlDecode(str);  //ERROR  umbraco should be how to write?
                }
                catch (Exception ex)
                {
                    return null;
                }
            }

     

     

     

  • lin04com 7 posts 27 karma points
    Jan 05, 2010 @ 18:33
    lin04com
    0

    Hi,ysee

    I have the same question : Chinese characters are garbled

    if you have resolved this issue,please tell to me.

    Thanks,
    Erick

  • ysee 38 posts 36 karma points
    Jan 09, 2010 @ 03:51
    ysee
    0

    SORRY!

    The work of busy these days!


    Ok,
    lin04com

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies