Update README and documentation to reflect the addition of the pyzotero skill and increment skill count from 147 to 148. Bump version to 2.24.0 in marketplace.json.

This commit is contained in:
Timothy Kassis
2026-02-27 09:38:51 -08:00
parent 8dc5701063
commit 6040d02c8c
17 changed files with 1385 additions and 6 deletions

View File

@@ -0,0 +1,68 @@
# Full-Text Content
Pyzotero can retrieve and set full-text index content for attachment items.
## Retrieving Full-Text Content
```python
# Get full-text content for a specific attachment item
data = zot.fulltext_item('ATTACHMENTKEY')
# Returns:
# {
# "content": "Full text of the document...",
# "indexedPages": 50,
# "totalPages": 50
# }
# For text docs: indexedChars/totalChars instead of pages
text = data['content']
coverage = data['indexedPages'] / data['totalPages']
```
## Finding Items with New Full-Text Content
```python
# Get item keys with full-text updated since a library version
new_fulltext = zot.new_fulltext(since='1085')
# Returns dict: {'KEY1': 1090, 'KEY2': 1095, ...}
# Values are the library version at which full-text was indexed
```
## Setting Full-Text Content
```python
# Set full-text for a PDF attachment
payload = {
'content': 'The full text content of the document.',
'indexedPages': 50,
'totalPages': 50
}
zot.set_fulltext('ATTACHMENTKEY', payload)
# For text documents use indexedChars/totalChars
payload = {
'content': 'Full text here.',
'indexedChars': 15000,
'totalChars': 15000
}
zot.set_fulltext('ATTACHMENTKEY', payload)
```
## Full-Text Search via CLI
The CLI provides full-text search across locally indexed PDFs:
```bash
# Search full-text content
pyzotero search -q "CRISPR gene editing" --fulltext
# Output as JSON (retrieves parent bibliographic items for attachments)
pyzotero search -q "climate tipping points" --fulltext --json
```
## Search in API (qmode=everything)
```python
# Search in titles/creators + full-text content
results = zot.items(q='protein folding', qmode='everything', limit=20)
```