Copied to clipboard

Flag this post as spam?

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


  • Tom 713 posts 952 karma points
    Apr 09, 2010 @ 02:16
    Tom
    0

    Examine - 49725 How to just search for text!

    Hi guys I used Examine previously on another site now in production and have to say what an AWESOME product it is!

     

    just a little confused with the introduction of chaning search terms in the new rc1 release:

    previously it was:

     

    new SearchCriteria(SearchTextBox.Text, true,0, 100);

     

    with chaining how would i relplicate this line just searching for searchtextbox.text..

    now with chaining:

     var searchCriteria = ExamineManager.Instance.CreateSearchCriteria(100, IndexType.Content);

         searchCriteria.IncludeHitCount = true;
                searchCriteria = searchCriteria
                    .Id(1080)
                    .Or()
                    .Field("headerText", "umb".Fuzzy())
                    .And()
                    .NodeTypeAlias("cws".MultipleCharacterWildcard())
                    .Not()
                    .NodeName("home")
                    .Compile();

                var results = ExamineManager.Instance.Search(searchCriteria);

    I can't seem to find the right chain to just search all fields for the search term...

    will there be new Examine doco out soon?

    Cheers,

    Tom

     

     

     

  • Tom 713 posts 952 karma points
    Apr 09, 2010 @ 02:23
    Tom
    0

    and also what does Fuzzy refer to in the doco?

     

    I was thinking of using MultipleFields and listing them all but i was wondering if there's a better way?

  • Tom 713 posts 952 karma points
    Apr 09, 2010 @ 02:26
    Tom
    0

    or can i just use the overload on Search.. as i was wondering with the newer releases if that would hang around?

  • 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