0

I am trying to see if i can use Azure search to do a Person match. i try to match person based on different attributes score them based on match and higher than certain threshold is considered that this person is a match against my azure search data-set.

i have defined scoring profile in my index as such, giving different weight to different attribute.

                ScoringProfiles = new[]
                {
                    new ScoringProfile()
                    {
                        Name = SuggesterName,
                        TextWeights = new TextWeights()
                        {
                            Weights = new Dictionary<string, double>()
                            {
                                {"Fname",2} ,
                                {"Lname",2} ,
                                {"Mname",0.3} ,
                                {"DOB",3} ,
                                {"DriversLicense",6} ,
                                {"IdentificationNumber",6} ,
                                {"PhoneCell",4} ,
                                {"Gender",0.2} ,
                                {"PhoneHome",1} ,
                            }
                        }
                    },
                }

for searching i am thinking i need to use lucene Fielded query operation, but i do not see any example on how to do this using azure search sdk for c#. i will be passing all or some of the attributes above and i am expecting them to be matched against their respective attributes and property like name should be allowed to do fuzzy match as well. then to get top 5 results in descending order of score.

4

1 回答 1

0

贾斯汀,

我不确定你上面的实际问题是什么。

也就是说,如果问题是如何将 Lucene 查询传递给 .NET SDK。

这只是[Search method][1](或 SearchAsync,或 SearchWithHttpMessagesAsync,或其通用重载之一等)的 searchText 参数。

谢谢!

——路易斯·卡布雷拉

于 2018-01-18T02:45:48.710 回答