fix: correct V3 search filter key and response field names in ae_knowledge

- Filter key is "and" not "and_filters" (V3 API format)
- Entry IDs use journal_entry_id/id, not id_random (id_random is None)
- Dates use updated_on/created_on, not updated_at/created_at
- Total count lives in meta.data_list_count, not top-level total/count
- Inject query_string="%" when and filters present but no query, since
  the V3 search engine requires query_string for filters to apply
- Normalize tags from string to list in both entry_read and entries_list
- Fix order_by to use updated_on (not updated_at) in entries_list
- Correct ARCH__AE_INTEGRATION.md: and_filters → and, or_filters → or

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Scott Idem
2026-04-30 21:12:44 -04:00
parent 71e472bebe
commit 1fa5151d8a
2 changed files with 18 additions and 14 deletions

View File

@@ -43,11 +43,11 @@ POST /v3/crud/journal_entry/search
```json
{
"query_string": "fulltext search term",
"and_filters": [
"and": [
{ "field": "tags", "op": "icontains", "value": "networking" },
{ "field": "created_on", "op": "gte", "value": "2026-01-01" }
],
"or_filters": [...],
"or": [...],
"page_size": 20,
"page": 1,
"order_by": "-updated_on"