Socket
Socket
Sign inDemoInstall

@nextwelve/nestjs-solrcloud

Package Overview
Dependencies
46
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @nextwelve/nestjs-solrcloud

Solrcloud client for Nestjs


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 01 Sep 2023

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc