Copied to clipboard

Flag this post as spam?

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


  • Kieron 152 posts 390 karma points
    May 03, 2019 @ 13:30
    Kieron
    0

    Encountered " ":" ": "" - Error when search query contains colon

    Hello, im using ezSearch on a 7.14.0 site, and if i search hello there: its me for example, then i get an error;

    Server Error in '/' Application.
    Encountered " ":" ": "" at line 1, column 241.
    Was expecting one of:
       <AND> ...
       <OR> ...
       <NOT> ...
       "+" ...
       "-" ...
       "(" ...
       ")" ...
       "*" ...
       "^" ...
       <QUOTED> ...
       <TERM> ...
       <FUZZY_SLOP> ...
       <PREFIXTERM> ...
       <WILDTERM> ...
       "[" ...
       "{" ...
       <NUMBER> ...
    
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
    
    Exception Details: Lucene.Net.QueryParsers.ParseException: Encountered " ":" ": "" at line 1, column 241.
    Was expecting one of:
       <AND> ...
       <OR> ...
       <NOT> ...
       "+" ...
       "-" ...
       "(" ...
       ")" ...
       "*" ...
       "^" ...
       <QUOTED> ...
       <TERM> ...
       <FUZZY_SLOP> ...
       <PREFIXTERM> ...
       <WILDTERM> ...
       "[" ...
       "{" ...
       <NUMBER> ...
    

    Any ideas on how I can stop this from happening? Thanks :)

    Im using the Macro like so:

       @Umbraco.RenderMacro("ezSearch", new { 
                                                    rootContentNodeId = "1061", 
                                                    rootMediaNodeId = "", 
                                                    indexType = "", 
                                                    searchFields = "tags, title, story, body, videoBody, content, author, preview, shortOverview", 
                                                    previewFields = "preview, shortOverview", 
                                                    previewLength = "", 
                                                    pageSize = "", 
                                                    hideFromSearchField = "", 
                                                    searchFormLocation = "NONE" 
                                                })
    
Please Sign in or register to post replies

Write your reply to:

Draft