Copied to clipboard

Flag this post as spam?

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


  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Jan 10, 2013 @ 12:20
    Rasmus Fjord
    0

    First attempt at examine, syntax error

    Hey there :)

    Im having my first attempt at examine, so far ive been following the blog post here :

    http://umbraco.com/follow-us/blog-archive/2011/9/16/examining-examine.aspx

    But when it comes to fuzzy search the syntax just wont work.

    Here is an image of how ive tested it, and on the "fuzzy" line its breaking up.

     

    Ive tried different things but nothing seems to work. Im testing it on a 4.7.2 site with about 4k nodes 

  • Stephen Roberts 47 posts 516 karma points c-trib
    Jan 10, 2013 @ 12:42
    Stephen Roberts
    0

    Hey,

    • when you say breaking up, it is throwing an exception or not finding anything
    • have you had a look at the raw query it generates (iirc query.ToString() ) 
  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Jan 10, 2013 @ 14:01
    Rasmus Fjord
    0

    My macro wont even run. 

    The reason why i thought it was syntax is because of the "bodyText", "nike".Fuzzy()

    Havnt tried to look at the actual raw query since it wont even run :/

    The macro just throws this error which in my world makes perfect sense :)

    Error CS1061: 'string' does not contain a definition for 'Fuzzy' and no extension method 'Fuzzy' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)    at System.Web.Compilation.AssemblyBuilder.Compile()

     

     

  • Mike Chambers 636 posts 1253 karma points c-trib
    Jan 10, 2013 @ 14:42
    Mike Chambers
    100

    Add in a using directive...

    @using Examine.LuceneEngine.SearchCriteria

    Also Fuzzy takes a float.. so you need Fuzzy(0.8f)

  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Jan 10, 2013 @ 14:49
    Rasmus Fjord
    0

    Just the thing i was missing :) Thx a bunch ! 

Please Sign in or register to post replies

Write your reply to:

Draft