+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Site search problem

Site search problem

6 posts, 0 answered
  1. v
    v avatar
    27 posts
    Registered:
    12 Aug 2009
    12 Aug 2009
    Link to this post

    Hi,

    IWe are developing a site using sitefinity 3.2.  We have used inbuilt site search box control, when we tried to search by giving a empty spaces we are getting a error as below. Please give us a suggestion.

    Encountered "<EOF>" at line 1, column 30.
    Was expecting one of:
       <NOT> ...
       "+" ...
       "-" ...
       "(" ...
       <QUOTED> ...
       <TERM> ...
       <PREFIXTERM> ...
       <WILDTERM> ...
       "[" ...
       "{" ...
       <NUMBER> ...


    Thanks,
    Meera
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    14 Aug 2009
    Link to this post
    Hi Meera V,

    Thank you for using our services.

    This is a known issue with the search box functionality in version 3.2. The allowed delimiters are described in the error message you are seeing. This issue has been resolved in later releases of Sitefinity. Our recommendation would be to upgrade your version of the CMS.

    Please feel free to contact us if you need assistance in the process of updating your version.

    All the best,
    Rado
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
  3. Tarun
    Tarun avatar
    81 posts
    Registered:
    14 Jan 2009
    08 Jan 2011
    Link to this post
    Hi,

    I am using the sitefinity ver 3.7 and getting the below error

    [ParseException: Cannot parse '': Encountered "<EOF>" at line 1, column 0.
    Was expecting one of:
        <NOT> ...
        "+" ...
        "-" ...
        "(" ...
        "*" ...
        <QUOTED> ...
        <TERM> ...
        <PREFIXTERM> ...
        <WILDTERM> ...
        "[" ...
        "{" ...
        <NUMBER> ...
        ]
       Telerik.Lucene.Net.QueryParsers.QueryParser.Parse(String query) +311
       Telerik.Search.Engine.SearchManager.Search(String searchQuery, String indexName, Int32 startIndex, Int32 max, String mode, Boolean escapeChars, Int32& totalItems) +332
       InstantCommunity.Sitefinity.Modules.Business.WebControls.BusinessListSearchable.CreateChildControls() +463
       System.Web.UI.Control.EnsureChildControls() +146
       System.Web.UI.WebControls.CompositeControl.get_Controls() +20
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +34
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +395
       System.Web.UI.Control.AddedControl(Control control, Int32 index) +326
       Telerik.Cms.Web.InternalPage.AddPageControls(IPageContent pageContent, Dictionary`2 placeHolders) +453
       System.Web.UI.Control.EnsureChildControls() +146
       System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +31
       System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +288
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2071


    and this is code

    int totalItems = 0;
               base.CreateChildControls();
     
               IList<ResultItem> CustomDataSource = SearchManager.Search(
                                            Search.Text,
                                            "BIndex",
                                            0,
                                            int.MaxValue,
                                            HttpContext.Current.Request.QueryString["WordsMode"],
                                            true,
                                            out totalItems);
     
               CatGrid.DataSource = CustomDataSource;
               CatGrid.DataBind();


    I am looking forward for your reply.


    Thanks,
    Tarun
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    10 Jan 2011
    Link to this post
    Hi v,

    What is the Search Query you use?

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Rehan
    Rehan avatar
    4 posts
    Registered:
    20 Dec 2012
    06 Feb 2014
    Link to this post
    Hi,

    I am also facing this problem when I try to search while giving empty space (I am using default search of sitefinity).
    I am using version 5.3
    Please help.



    Server Error in '/' Application.Encountered "<EOF>" at line 1, column 1.
    Was expecting one of:
       <NOT> ...
       "+" ...
       "-" ...
       "(" ...
       "*" ...
       <QUOTED> ...
       <TERM> ...
       <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: Telerik.Sitefinity.Utilities.Lucene.Net.QueryParsers.ParseException: Encountered "<EOF>" at line 1, column 1.
    Was expecting one of:
       <NOT> ...
       "+" ...
       "-" ...
       "(" ...
       "*" ...
       <QUOTED> ...
       <TERM> ...
       <PREFIXTERM> ...
       <WILDTERM> ...
       "[" ...
       "{" ...
       <NUMBER> ...
       

    Source Error: 

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace: 


    [ParseException: Encountered "<EOF>" at line 1, column 1.
    Was expecting one of:
    <NOT> ...
    "+" ...
    "-" ...
    "(" ...
    "*" ...
    <QUOTED> ...
    <TERM> ...
    <PREFIXTERM> ...
    <WILDTERM> ...
    "[" ...
    "{" ...
    <NUMBER> ...
    ]
    Telerik.Sitefinity.Utilities.Lucene.Net.QueryParsers.QueryParser.Jj_consume_token(Int32 kind) +309
    Telerik.Sitefinity.Utilities.Lucene.Net.QueryParsers.QueryParser.Clause(String field) +652
    Telerik.Sitefinity.Utilities.Lucene.Net.QueryParsers.QueryParser.Query(String field) +79
    Telerik.Sitefinity.Utilities.Lucene.Net.QueryParsers.QueryParser.Parse(String query) +138

    [ParseException: Cannot parse ' ': Encountered "<EOF>" at line 1, column 1.
    Was expecting one of:
    <NOT> ...
    "+" ...
    "-" ...
    "(" ...
    "*" ...
    <QUOTED> ...
    <TERM> ...
    <PREFIXTERM> ...
    <WILDTERM> ...
    "[" ...
    "{" ...
    <NUMBER> ...
    ]
    Telerik.Sitefinity.Utilities.Lucene.Net.QueryParsers.QueryParser.Parse(String query) +343
    Telerik.Sitefinity.Services.Search.LuceneQueryBuilder.BuildTerm(String field, String text) +240
    Telerik.Sitefinity.Services.Search.LuceneQueryBuilder.AddTerm(String field, String text, Single boost) +25
    Telerik.Sitefinity.Services.Search.ISearchServiceExtensions.BuildQuery(ISearchService service, String text, IEnumerable`1 searchFields, Boolean addMultilingualCheck) +207
    Telerik.Sitefinity.Services.Search.Web.UI.Public.SearchResults.BuildSearchQuery(String searchQuery, ISearchService service) +127
    Telerik.Sitefinity.Services.Search.Web.UI.Public.NewSearcher.Search(String query, String catalogue, Int32 skip, Int32 take, Int32& hitCount) +64
    Telerik.Sitefinity.Services.Search.Web.UI.Public.SearchResults.InitializeControls(GenericContainer container) +387
    Telerik.Sitefinity.Web.UI.SimpleView.CreateChildControls() +82
    System.Web.UI.Control.EnsureChildControls() +182
    System.Web.UI.Control.PreRenderRecursiveInternal() +60
    System.Web.UI.Control.PreRenderRecursiveInternal() +222
    System.Web.UI.Control.PreRenderRecursiveInternal() +222
    System.Web.UI.Control.PreRenderRecursiveInternal() +222
    System.Web.UI.Control.PreRenderRecursiveInternal() +222
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4201

    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1008
  6. Yavor Slavchev
    Yavor Slavchev avatar
    27 posts
    Registered:
    13 Sep 2016
    10 Feb 2014
    Link to this post
    Hi Rehan,

    I tried to reproduce the problem locally but to no avail – everything is working as expected on our side.

    Please provide the following details – hopefully they will help us pinpoint the exact reason for this behavior:

    1.    In your post, you have noted that you are using version 5.3. Can you please confirm the exact version?
    2.    Please send us the exact steps to reproduce the problem. If possible, send us some screenshots of the observed behavior.

    Regards,
    Yavor Slavchev
    Telerik
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
Register for webinar
6 posts, 0 answered