Copied to clipboard

Flag this post as spam?

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


  • Rob 43 posts 79 karma points
    Dec 09, 2012 @ 17:09
    Rob
    0

    Examine - searches only for the first part of a page?

    We have a few pages that contain a fairly good amount of html. What seems to happen is that if a phrase is pulled out of the first part of the doc and searched, the page is returned, however if the phrase exists in the last part of the doc, no results are returned.Currently we are using the ExternalSearcher with little to no modification (except makeing the search case insensitive)Any ideas? Is this a limitation of Examine / Lucine or is it something I am doing? Currently i am using the API to run searches, but I have been wondering about replacing the code with RAZOR.. Thoughts?Thanks in advanceRob

  • Rob 43 posts 79 karma points
    Dec 09, 2012 @ 17:11
    Rob
    0

    Oh yeah.. basic code

    var criteria = ExamineManager
        .Instance
        .SearchProviderCollection["ExternalSearcher"]
        .CreateSearchCriteria();
    var filter = criteria.GroupedOr(new string[] { "nodeName", "bodyText" }, SearchTerm).Compile(); ;
         //                .Not()
         //                .Field("naviHide", "1")
         //                .Compile();
    SearchResult = ExamineManager.Instance.SearchProviderCollection["ExternalSearcher"].Search(filter);
    var fields = SearchResult.ToList().Select(x => x.Fields);
    
    
Please Sign in or register to post replies

Write your reply to:

Draft