Skip to content

Improve @tomic/lib search API #840

@Polleps

Description

@Polleps

Using Atomics full text search feature with @tomic/lib could be better.

Currently it's not very straightforward

const subject = buildSearchSubject(
  serverUrl,
  query,
);

const searchResource = await this.store.fetchResourceFromServer(subject, {
  noWebSocket: true,
});

const results = searchResource.get(server.properties.results);

Something like this would be a lot better:

const results = await store.search(query);

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions