1
Vote

Error in ESPSearchConfigEditorPart.cs - CreateQueryTemplatePageBody

description

_defaultQueryTemplates.Items.Add(new ListItem(QUERY_TEMPLATE_LABEL_SIMPLEANY, QUERY_TEMPLATE_LABEL_SIMPLEANY));
_defaultQueryTemplates.Items.Add(new ListItem(QUERY_TEMPLATE_LABEL_SIMPLEALL, QUERY_TEMPLATE_LABEL_SIMPLEALL));
_defaultQueryTemplates.Items.Add(new ListItem(QUERY_TEMPLATE_LABEL_PHRASE, QUERY_TEMPLATE_LABEL_PHRASE));
 
should read
 
_defaultQueryTemplates.Items.Add(new ListItem(QUERY_TEMPLATE_LABEL_SIMPLEANY, QUERY_TEMPLATE_SIMPLEANY));
_defaultQueryTemplates.Items.Add(new ListItem(QUERY_TEMPLATE_LABEL_SIMPLEALL, QUERY_TEMPLATE_SIMPLEALL));
_defaultQueryTemplates.Items.Add(new ListItem(QUERY_TEMPLATE_LABEL_PHRASE, QUERY_TEMPLATE_PHRASE));
 
Without this fix the dropdown where you choose Any/All/Exact will be reset to Any if you edit the webpart.

comments