1.0.17 • Published 8 months ago

@secretteam/nestjs-solrcloud v1.0.17

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

npm  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 @secretteam/nestjs-solrcloud

Usage

Register SolrModule:

import { SolrModule } from '@secretteam/nestjs-solrcloud';

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

Inject SolrService:

import { SolrService } from '@secretteam/nestjs-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.

1.0.17

8 months ago

1.0.16

8 months ago

1.0.15

8 months ago

1.0.14

8 months ago

1.0.13

8 months ago

1.0.12

8 months ago

1.0.11

8 months ago

1.0.10

8 months ago

1.0.9

8 months ago

1.0.8

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago