solr express
5.2.0
5.2.0
  • Introduction
  • About SOLR Express
    • Release notes
    • About
      • License
      • Packages
    • Benchmarks
      • Version 3.1.2
      • Version 5.0.0
    • Breaking changes
      • Version 5.0.0
  • Tutorials
    • Getting started
    • Basic Features
      • Queries
      • Fail fast
      • Global settings
      • Local parameter
    • Facets
      • Facet field
      • Facet query
      • Facet range
      • Facet spatial
      • Nested facet
    • Advanced Features
      • Authentication and Authorization
      • Dynamic field behaviour
      • Result interceptors
Powered by GitBook
On this page
  • Feature
  • How to

Was this helpful?

  1. Tutorials
  2. Basic Features

Fail fast

PreviousQueriesNextGlobal settings

Last updated 6 years ago

Was this helpful?

Feature

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

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

NOTE

See more in ;

How to

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
            );
field options by use case