Skip to content

Commit

Permalink
palomar: tweak proposed schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
bnewbold committed Aug 2, 2023
1 parent 7a74f80 commit 365962a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
26 changes: 14 additions & 12 deletions cmd/palomar/post_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,29 +40,31 @@
"_doc": {
"properties": {
"doc_index_ts": { "type": "date" },
"created_at": { "type": "date" },
"did": { "type": "keyword", "normalizer": "default", "doc_values": false },
"handle": { "type": "keyword", "normalizer": "default", "copy_to": "everything" },
"display_name": { "type": "keyword", "normalizer": "default", "copy_to": "everything" },
"tid": { "type": "keyword", "normalizer": "default" },
"record_tid": { "type": "keyword", "normalizer": "default" },
"handle": { "type": "keyword", "normalizer": "default" },

"text": { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch", "copy_to": "everything" },

"created_at": { "type": "date" },
"mention_did": { "type": "keyword", "normalizer": "default", "doc_values": false },
"mention_handle": { "type": "keyword", "normalizer": "default" },
"embed_url": { "type": "keyword", "normalizer": "default" },
"embed_text": { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch", "copy_to": "everything" },
"embed_text": { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch" },
"quote_uri": { "type": "keyword", "normalizer": "default" },
"reply_parent_uri": { "type": "keyword", "normalizer": "default" },
"reply_root_uri": { "type": "keyword", "normalizer": "default" },
"record_label": { "type": "keyword", "normalizer": "default", "copy_to": "label" },
"repo_label": { "type": "keyword", "normalizer": "default", "copy_to": "label" },
"reply_root_uri": { "type": "keyword", "normalizer": "default" },
"lang_code": { "type": "keyword", "normalizer": "default" },
"lang_code_norm": { "type": "keyword", "normalizer": "default" },
"img_count": { "type": "integer" },
"img_alt_text": { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch", "copy_to": "everything" },
"img_alt_text": { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch", "copy_to": "everything" },

"everything": { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch" },

"label": { "type": "keyword", "normalizer": "default" },
"everything": { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch" }
"author": { "type": "alias", "path": "handle" },
"by": { "type": "alias", "path": "handle" },
"from": { "type": "alias", "path": "handle" },
"lang": { "type": "alias", "path": "lang_code_norm" },
"mentions": { "type": "alias", "path": "mention_handle" }
}
}
}
Expand Down
18 changes: 8 additions & 10 deletions cmd/palomar/profile_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,20 @@
"_doc": {
"properties": {
"doc_index_ts": { "type": "date" },
"created_at": { "type": "date" },
"did": { "type": "keyword", "normalizer": "default", "doc_values": false },
"record_tid": { "type": "keyword", "normalizer": "default" },
"handle": { "type": "keyword", "normalizer": "default", "copy_to": "everything" },
"display_name": { "type": "keyword", "normalizer": "default", "copy_to": "everything" },

"description": { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch", "copy_to": "everything" },

"record_label": { "type": "keyword", "normalizer": "default", "copy_to": "label" },
"repo_label": { "type": "keyword", "normalizer": "default", "copy_to": "label" },
"display_name": { "type": "keyword", "normalizer": "default", "copy_to": "everything" },
"created_at": { "type": "date" },
"lang_code": { "type": "keyword", "normalizer": "default" },
"img_alt_text": { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch", "copy_to": "everything" },
"has_avatar": { "type": "boolean" },
"has_banner": { "type": "boolean" },
"lang_code_norm": { "type": "keyword", "normalizer": "default" },
"img_alt_text": { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch", "copy_to": "everything" },
"has_avatar": { "type": "boolean" },
"has_banner": { "type": "boolean" },

"label": { "type": "keyword", "normalizer": "default" },
"everything": { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch" }
"everything": { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch" }
}
}
}
Expand Down

0 comments on commit 365962a

Please sign in to comment.