Method Count
- Namespace
- TantivyDotNet
- Assembly
- TantivyDotNet.dll
Count(string, IEnumerable<string>?)
Counts the documents matching query without retrieving them.
public long Count(string query, IEnumerable<string>? defaultFields = null)
Parameters
querystringFor example
body:mice AND year:[1930 TO 1940],"exact phrase",title:rust -java. Terms without afield:prefix searchdefaultFields. Terms are combined with OR by default.defaultFieldsIEnumerable<string>
Returns
Count(Query)
Counts the documents matching query without retrieving them.
public long Count(Query query)