You are viewing limited content. For full access, please sign in.

Question

Question

Mismatch of search query in Web client and SDK

asked on December 20, 2022

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;

0 0

Replies

replied on December 21, 2022

The Search object has a property called `IsStemmingEnabled` that seems like it would account for this. This is exposed in the web client on the Options page, "Include variations of root word in indexed searches".

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.