Thanks - I wrote the following code, in a console app
Code:
public static void Main(string[] a)
{
var configuration = new Keyoti.SearchEngine.Configuration { IndexDirectory = @"C:\d\seb" };
var searchAgent = new SearchAgent("5A556A61675D69626B5C6D6C644854263C3E3D423B41413E4345414746484B464C4E383D7", configuration);
var searchOptions = new SearchOptions { LocationCategoryName = "DEU/DEU", ContentCategoryNames = new string[]{"Prospectus"}};
Keyoti.SearchEngine.Search.SearchResult search = searchAgent.Search("DAX", searchOptions, 1, Int32.MaxValue);
foreach (ResultItem item in search)
{
Console.WriteLine(item.UriString + "\t" + item.Weight);
}
Console.ReadLine();
Give this (which matches the info in the screenshot you sent)
Code:
http://-------------------------------/Prospectus/7ba0fddd-5b91-44c9-9f95-c9256d
6a8b69/prospectusdbxtrackers1_2013_06_01.pdf 1060
http://-------------------------------/Prospectus/f475a1fd-dc90-40db-9a11-7bb0be
e55b59/prospectusLU0490619193_2011_01.pdf 760
http://-------------------------------/Prospectus/bb1aa8fb-4d0d-4f3a-b128-5e3dc2
cde904/prospectusLU0274211217_2011_01.pdf 760
So it works fine. Looking in our revision history there is one thing related to weights, back in September 2012 we fixed an issue with
wildcard based queries where the matched word was in capitals. Eg search for "da*" and it matches "DAX". If that's what you're doing then using the current release should fix it - if it didn't seem to then it means your search app probably isn't
actually using the latest DLLs.
If this isn't the case, then please modify the code to make it act the way you describe, or send a completely self contained project, including references.
Best
Jim
-your feedback is helpful to other users, thank you!-your feedback is helpful to other users, thank you!