Posted on 31/05/2013 23:28:39
Hi Morten
This is a piece of my code:
public override SearchQueryElement ComposeQuery()
{
if (!string.IsNullOrWhiteSpace(Request("type-danish", true)) && !string.IsNullOrWhiteSpace(Request("type-foreign", true)))
{
return new CriteriaGroup(new RangeCriteria("productfield_field14", (int)SubscriptionType.Danish, (int)SubscriptionType.Danish, true), CriteriaSeparator.Or, new RangeCriteria("productfield_field14", (int)SubscriptionType.Foreign, (int)SubscriptionType.Foreign, true));
}
else if (!string.IsNullOrWhiteSpace(Request("type-danish", true)))
{
return new RangeCriteria("productfield_field14", (int)SubscriptionType.Danish, (int)SubscriptionType.Danish, true);
}
else
{
return new RangeCriteria("productfield_field14", (int)SubscriptionType.Foreign, (int)SubscriptionType.Foreign, true);
}
}
And the compiled query looks like: "productfield_field14:[P00000000000000000001 TO P00000000000000000001]", but when querying the index I do not get any results. Only if my query looks like: "productfield_field14:[p00000000000000000001 TO p00000000000000000001]".
The notifier "Dynamicweb.Notifications.eCommerce.SearchFilters.AfterComposeQuery" only seems to include the current filter and not the full query.
Is there a standard LogProvider for the index or do I have to create my own??
Best regards, Anders