Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SearchRaw & .FacetItems Throw Exception w/ Latest Commit #645

Closed
nariman-haghighi opened this issue May 7, 2014 · 1 comment
Closed

Comments

@nariman-haghighi
Copy link

The following line is now generating an exception because this.Infer is null for .SearchRaw calls:

        public IEnumerable<F> FacetItems<F>(Expression<Func<T, object>> expression) where F : FacetItem
        {
            var fieldName = this.Infer.PropertyPath(expression);
            return this.FacetItems<F>(fieldName);
        }
@Mpdreamz
Copy link
Member

Mpdreamz commented May 7, 2014

Great spot @nariman-haghighi 👍 This happened because when you used NEST typed responses with low level Elasticsearch.Net calls .ConnectionStatus would not be set causing .Infer to misbehave on NEST's BaseResponse.

The "magic" that sets this property now actually lives in Elasticsearch.Net.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants