search 0.2.0 copy "search: ^0.2.0" to clipboard
search: ^0.2.0 copied to clipboard

unlistedoutdated

A simple search engine that enables natural öanguage searches in Flutter / web applications.

example/example.dart

import 'package:datastore/adapters.dart';
import 'package:datastore/datastore.dart';
import 'package:search/search.dart';

void main() async {
  // Set default datastore
  Datastore.freezeDefaultInstance(
    SearcheableDatastore(
      datastore: MemoryDatastore(),
      isReadOnly: true,
    ),
  );

  // ...

  final datastore = Datastore.defaultInstance;
  final collection = datastore.collection('employee');
  final response = await collection.search(
    query: Query.parse('"software developer" (dart OR javascript)'),
  );
  for (var snapshot in response.snapshots) {
    print('Document ID: ${snapshot.document.documentId}');
  }
}
23
likes
0
pub points
32%
popularity

Publisher

verified publisherdint.dev

A simple search engine that enables natural öanguage searches in Flutter / web applications.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

charcode, datastore, meta

More

Packages that depend on search