General query endpoint #6

Open
opened 2024-05-27 09:11:11 +00:00 by michael · 0 comments
Owner

Might also need a query editor / builder

API

GET /node/search

interface SearchOpts {
  fields: string[]; // This is the list of fully-qualified field names
  limit: number;
  offset: number;
}

This returns a list of nodes, along with the fields requested

GET /node/searchRaw

just send the query string directly for now

Use cases

This needs to be general enough to support:

  • Query for all mail accounts
  • Query for all mailboxes under a certain account
  • Query for #N..#M messages
  • Query for all nodes with a TODO, sorted by date modified

Some of this searching may also be offloaded to tantivy, depending on the amount of full-text-searchiness

Also consider doing a rich text search box like Discord

Might also need a query editor / builder ## API GET /node/search ```ts interface SearchOpts { fields: string[]; // This is the list of fully-qualified field names limit: number; offset: number; } ``` This returns a list of nodes, along with the fields requested GET /node/searchRaw just send the query string directly for now ## Use cases This needs to be general enough to support: - Query for all mail accounts - Query for all mailboxes under a certain account - Query for #N..#M messages - Query for all nodes with a TODO, sorted by date modified Some of this searching may also be offloaded to tantivy, depending on the amount of full-text-searchiness Also consider doing a rich text search box like Discord
michael changed title from Live query node type to General query endpoint 2024-05-28 09:07:16 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: michael/panorama#6
No description provided.