Hi,
There is a mismatch in search query result in Webclient and SDK
For Example:
When user search for (test) & {LF:Name="*", Type="DS"}
In WebClient search result includes documents contains testing, tests,test etc. But SDK search with same query return documents with exact word match "test".
Note: In Both cases fizzy search is disabled.
SDK Code:
var search = new Search(s);
search.Command = Query;
Util.Trace("Query:" + Query);
Util.Trace("***************************************");
var sd=DateTime.Now;
search.Run();
Util.TraceTime(sd, "Search.Run");
var l = new SearchListingSettings();
l.AddColumn(SystemColumn.Id);
l.AddColumn(SystemColumn.Name);
l.AddColumn(SystemColumn.EntryType);
l.AddColumn(SystemColumn.DisplayName);
l.AddColumn(SystemColumn.IsCheckedOut);
l.AddColumn(SystemColumn.CreatorName);
l.AddColumn(SystemColumn.CreationDate);
l.AddColumn(SystemColumn.TemplateName);
l.AddColumn(SystemColumn.LastModified);
l.AddColumn(SystemColumn.ModifierName);
l.AddColumn(SystemColumn.CheckedOutByName);
l.AddColumn(SystemColumn.MimeType);
l.AddColumn(SystemColumn.Extension);
l.AddColumn(SystemColumn.Path);
l.AddColumn(SystemColumn.Tags);
l.AddColumn(SystemColumn.PageCount);
l.EntryFilter = EntryTypeFilter.NotFolders;
l.SetSortColumn(SystemColumn.CreationDate, SortDirection.Descending);
sd = DateTime.Now;
int max = Convert.ToInt32(Util.Get("Num"));
var lst = search.GetResultListing(l,max);
Util.TraceTime(sd, "GetResultListing");
int num = lst.RowsCount;
Question
Question
Mismatch of search query in Web client and SDK
asked on December 20, 2022
0
0