Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

@nextwelve/nestjs-solrcloud

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nextwelve/nestjs-solrcloud

Solrcloud client for Nestjs

latest
Source
npmnpm
Version
1.0.7
Version published
Weekly downloads
2
-33.33%
Maintainers
1
Weekly downloads
 
Created
Source






npm NPM Downloads Gitter Unicorn Tweet


The purpose of creating this package was the reason for its lack of space and support. The package will be further improved and refined over time. Any constructive criticism and suggestions for improvement are welcome. We are committed to always maintaining the latest features of solr and providing additional features to help develop any application that uses it for large scale applications.


Installation

$ yarn add @nestwelve/solrcloud

Usage

Register SolrModule:

import { SolrModule } from '@nextwelve/solrcloud';

@Module({
  imports: [
    SolrModule.register({
      host: 'localhost',
      port: '8983',
      secure: false,
      core: 'mycore',
    }),
  ],
})
export class AppModule {}

Inject SolrService:

import { SolrService } from '@nextwelve/solrcloud';

@Injectable()
export class SearchService {
  constructor(private readonly solrService: SolrService) {}
}

Examples

Build a search query:

const query = this.solrService.query('your_collection');

query
  .q({
    email: 'stallone1946@gmail.com'
  })
  .filter(['email'])
  .fields(['firstName', 'lastName', 'email'])
  .offset(0)
  .limit(10);

Search by query:

this.solrService.search(query);

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Keywords

nestjs

FAQs

Package last updated on 01 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts