RavenDb proximity search -
i have entity type:
public class log { public int id { get; set; } public string action { get; set; } public string message { get; set; } }
and index:
public class logindex : abstractindexcreationtask<log> { public logindex() { map = xs => x in xs select new { x.id, x.action, x.message }; } }
and store entity{ action: "getmessage", message: "this hello world message."}
.
then can entity message:(hello world)
or message:"hello world"
on raven studio.
now want proximity search
entity message:(hello world)~2
, exception unexpected tilde
.
then use message:"hello world"~2
, nothing. should do? thank you.
in order support proximity search, need mark message
analyzed , use message:"hello world"~2
Comments
Post a Comment