Fail fast
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
Throw SearchParameterIsInvalidException when developer use a field in wrong way
Using a collection with 2 fields with follow settings:
Field
Indexed
Stored
Field1
False
True
Field2
True
False
Use cases:
Use case
Using method
Field1
Field2
Faceting
FacetField
Throws exception
Works well
Faceting
FacetQuery
Throws exception
Works well
Faceting
NOTE
See more in field options by use case;
This feature is actived by default
To active/inactive this feature, change your SolrExpressOptions and set FailFast, like below:
services
.AddSolrExpress<TechProduct>(builder => builder
.UseOptions(options =>
{
// ... Other settings
options.FailFast = true
})
// ... Other settings
);
FacetRange
Throws exception
Works well
Filtering
Filter
Throws exception
Works well
Get contents
Fields
Works well
Throws exception
Search
Query
Throws exception
Works well
Sorting
Sort
Throws exception
Works well