-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
NEST/Elasticsearch.Net version: 5.4
Elasticsearch version: 5.5
Description of the problem including expected versus actual behavior: After upgrading to NEST 5.4 (from 5.2.2) I get an exception on QueryContainerDescriptor.Wildcard(field, value).
The call is ambiguous between the following methods or properties: 'QueryContainerDescriptor<T>.Wildcard(Expression<Func<T, object>>, string, double?, RewriteMultiTerm?, string)' and 'QueryContainerDescriptor<T>.Wildcard(Expression<Func<T, object>>, string, double?, MultiTermQueryRewrite, string)'
I use this feature to do Wildcard searches, because the alternative Term does not work like a 'like' search.
var query = value.Contains("*") ? (Func<QueryContainerDescriptor<T>, QueryContainer>)
(bs => bs.Wildcard(propConfig.KeySelector, value)) : // wildcard search
(bs => bs.Term(propConfig.KeySelector, value)); // default term search
Steps to reproduce:
- call .Wildcard on a QueryContainerDescriptor with 2 parameters: field, value
Misc:
I also noticed that .Wildcard is new deprecated. What is the recommended method to replace this? I can't find this in any release notes.