Metadata-Version: 2.5
Name: university-search
Version: 0.1.2
Summary: University Search: permission-aware search with database (PostgreSQL full-text) and OpenSearch/Elasticsearch backends for the University platform.
Project-URL: Homepage, https://github.com/NzeStan/University
Project-URL: Documentation, https://github.com/NzeStan/University/blob/main/docs/modules/search.md
Project-URL: Source, https://github.com/NzeStan/University
Project-URL: Changelog, https://github.com/NzeStan/University/blob/main/CHANGELOG.md
Author-email: Ifeanyi Stanley <nnamaniifeanyi10@gmail.com>
License-Expression: MIT
License-File: LICENSE
Keywords: africa,django,drf,elasticsearch,full-text,opensearch,postgresql,search,university
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: Django
Classifier: Framework :: Django :: 5.2
Classifier: Framework :: Django :: 6.0
Classifier: Framework :: Django :: 6.1
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Typing :: Typed
Requires-Python: >=3.11
Requires-Dist: university-core<0.2,>=0.1.1
Provides-Extra: test
Requires-Dist: drf-spectacular>=0.27; extra == 'test'
Requires-Dist: pytest-cov>=5; extra == 'test'
Requires-Dist: pytest-django>=4.8; extra == 'test'
Requires-Dist: pytest>=8; extra == 'test'
Description-Content-Type: text/markdown

# university-search

Permission-aware search for the [University platform](https://github.com/NzeStan/University).
This is an optional *level two* module that depends only on `university-core`, and it implements
Core's search abstraction.

- **Backends:** a database backend (PostgreSQL full-text with weighted ranking, or a portable
  fallback) and OpenSearch/Elasticsearch over HTTPS. Others plug in through Core's
  `SearchBackend` protocol.
- **Content** is indexed through ids-only events and content adapters: posts, comments,
  anonymous posts, communities, events, listings, episodes and campaigns. A `search_reindex`
  command backfills.
- **Every hit is re-checked for the viewer.** Visibility tags narrow the candidates, and the
  content adapter decides, so private communities, audience-only and hidden content, and blocked
  people never leak.
- **Enumeration-resistant** (spec section 90):
  - People search uses handles and display names only, never email or phone.
  - It respects `searchable` and profile privacy and blocks, needs longer queries, caps results
    and is rate-limited.
  - Anonymous content is never linked to anyone.

```bash
pip install university-search
```

See [the module documentation](../../docs/modules/search.md).
