solr express
1.0.0
1.0.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
  1. Tutorials
  2. Basic Features

Global settings

PreviousFail fastNextLocal parameter

Last updated 6 years ago

Was this helpful?

CtrlK
  • Feature
  • How to

Was this helpful?

Feature

Set settings only once to all searchs using global settings

Useful when use same parameters to all searchs

How to

  1. In your services configurations (used to add Solr Express services in DI provider), invoke method UseOptions

  1. Set options with necessary parameter, field behaviour or some other feature provided by Solr Express

    services
        .AddSolrExpress<TechProduct>(builder => builder
            .UseOptions(options =>
            {
                // ... Global settings
            })
            // ...  Other settings
            );