Copied to clipboard

Flag this post as spam?

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


  • Naveed Ali 161 posts 426 karma points
    May 16, 2016 @ 12:25
    Naveed Ali
    0

    Simplistic search

    Hi All,

    Has anyone got a copy of the code for the simplistic search controller.

    I had altered my code to try and sanitize the search string, But now I cannot revert back as I never made a copy of the original code so my search does not work. The line I change was for the variable "Term"

     {
                IgnoreProperty = ignoreProperty,
                SearchedDocumentTypes = ConvertListOfStringIdsToListOfDocumentTypes(ConvertCommaSeparatedStringToListOfString(documentTypes)),
                PresentationLabel = presentationLabel,
                //Term = SanitizeInput(Request.QueryString[queryString]),
                Term = Request.QueryString[queryString],
                RootNode = new Node(rootNode),
                SearchResults = new List<SearchResultItem>(),
                DisplayName = displayName,
                DisplayPreamble = displayPreamble,
                SearchedProperies = ConvertCommaSeparatedStringToListOfString(properties),
                SortByRelevance = sortByRelevance == "1",
                EnableHighlighting = enableHighlighing == "1",
                AlternativeName = displayNameAlternate,
                AlternativePreamble = displayPreambleAlternate
            };
    

    If anyone has a snippet of the original code for this I would be grateful

    Thanks

    Nav

  • 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