Copied to clipboard

Flag this post as spam?

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


  • Eran Meir 401 posts 543 karma points
    Jan 10, 2013 @ 14:38
    Eran Meir
    0

    MultipleCharacterWildcard and Boost at the same time (Examine)

    i'm trying to use MultipleCharacterWildcard and boost at the same time but i get the following criteria

    +displayName:test^5.0

    this is my code

    sc.Field("displayName", searchTerm.MultipleCharacterWildcard().Value.Boost(5))

     

    how can i use them together? is it possible? thank you.

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Jan 10, 2013 @ 15:33
    Ismail Mayat
    0

    Eran,

    Instead of using the Examine query builder you could do a raw query:

     

    +displayName:test*^5.0

     

    then for your query

    SearchProvider.Search(SearchProvider.CreateSearchCriteria().RawQuery(query));

    where query is the lucene syntax query string.

    Regards

    Ismail

     

Please Sign in or register to post replies

Write your reply to:

Draft