1
こんにちは、私はファジー操作を使用して一致する必要がありますクエリがあります。エラスティック検索マッチとファジークエリ(NEST)のLINQ式を書く方法
{
"query": {
"match": {
"answer": {
"query": "conevrt o",
"fuzziness": 2
}
}
}
}
私はこの使用してラムダ式スタイルイムNEST.fuzzinessにint型に変換することはできませんというエラーを取得を書いてみます。
ここにラムダ式を取ります。
match = drFuzzy.Text; //im getting text from the asp:dropdown(hardcoded 0,0.5,1,2)
int fuzz = Int32.Parse(match); // converting this to integer
var searchResponse = client.Search<StudResponse>(s => s
.Query(q => q
.Match(m => m
.Field(f => f.Answer)
.Query(key1)
.Fuzziness(fuzz) //throwing an error here. cannot convert from int to Nest.Fuzziness
)
)
);
ありがとうございます。
ありがとうございます。その作業:) – ASN