You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling Analyze with en empty / null value throws an Exception. I think it would be better to be able to send empty analyze requests and get an IAnalyzeResponse back with the IsValid = false and appropriate error message set instead of the exception.
Example:
varreq=newAnalyzeRequest(String.Empty);req.Indices=newIndexNameMarker[]{IndexName};req.Field=field;// Next line throws an exceptionvaranalyzeResult=Client.Analyze(req);
The text was updated successfully, but these errors were encountered:
@Roemer agreed, it doesn't really make sense to call Analyze on an empty string, but nonetheless, we should treat it as we normally do with elasticsearch exceptions. Just pushed the above fix, thanks for reporting this!
Calling Analyze with en empty / null value throws an Exception. I think it would be better to be able to send empty analyze requests and get an IAnalyzeResponse back with the IsValid = false and appropriate error message set instead of the exception.
Example:
The text was updated successfully, but these errors were encountered: